Skip to content

Commit

Permalink
fix useMemo
Browse files Browse the repository at this point in the history
  • Loading branch information
jomarko committed Dec 10, 2024
1 parent 4312521 commit d5194b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export function BeeTableTd<R extends object>({
}, [column.id, onDataCellKeyUp]);

const evaluationHitsCountBadgeClassName = useMemo(() => {
canDisplayEvaluationHitsCountBadge
return canDisplayEvaluationHitsCountBadge
? (evaluationHitsCount ?? 0) > 0
? "evaluation-hits-count-badge-colored"
: "evaluation-hits-count-badge-non-colored"
Expand Down

0 comments on commit d5194b2

Please sign in to comment.