Skip to content

Commit

Permalink
fix: use clearer logic for number|null
Browse files Browse the repository at this point in the history
  • Loading branch information
zkrising committed Sep 23, 2024
1 parent 6281abf commit b5314db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/tables/cells/DDRScoreCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function DDRScoreCell({
<strong>{grade}</strong>
<br />
{score !== undefined && <>{scoreRenderFn ? scoreRenderFn(score) : score}</>}
{(!!exScore || exScore === 0) && (
{typeof exScore === "number" && (
<>
<br />
[EX: {exScore}]
Expand Down

0 comments on commit b5314db

Please sign in to comment.