Skip to content

Commit

Permalink
Debug score
Browse files Browse the repository at this point in the history
  • Loading branch information
otenav committed Oct 11, 2024
1 parent 581664c commit 8d34a6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/(sok)/_components/searchResult/Debug.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ function Debug({ ad }) {
<VStack gap="4">
<HStack gap="2">
{searchParams.has(QueryNames.SEARCH_STRING) && (
<GroupItem color="surface-info-moderate">{ad.score?.toFixed(1)}</GroupItem>
<GroupItem color={ad.score >= 2 ? "surface-warning-subtle" : "surface-danger-subtle"}>
{ad.score?.toFixed(1)}
</GroupItem>
)}

{ad.medium && <GroupItem color="surface-info-subtle">{mediumDisplayName(ad.medium)}</GroupItem>}
Expand Down

0 comments on commit 8d34a6d

Please sign in to comment.