Skip to content

Commit b8463b7

Browse files
committed
fix: revert formatScore change to maintain type compatibility
1 parent 841c6c7 commit b8463b7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
export const formatScore = (score: number | null | undefined) => {
2-
if (score === null || score === undefined) {
3-
return "-"
4-
}
5-
return Math.round(score * 100)
6-
}
1+
export const formatScore = (score: number) => Math.round(score * 100)

0 commit comments

Comments
 (0)