fix score

This commit is contained in:
Josh Hawkins 2024-10-15 07:49:48 -05:00
parent 9d498ae0ea
commit ae679ac15c

View File

@ -90,7 +90,10 @@ export default function SearchThumbnail({
onClick={() => onClick(searchResult)} onClick={() => onClick(searchResult)}
> >
{getIconForLabel(objectLabel, "size-3 text-white")} {getIconForLabel(objectLabel, "size-3 text-white")}
{Math.round(searchResult.data.score * 100)}% {Math.floor(
searchResult.score ?? searchResult.data.top_score * 100,
)}
%
</Chip> </Chip>
</div> </div>
</TooltipTrigger> </TooltipTrigger>