diff --git a/client/src/features/RushGame/RushGameSections/FinalResult.tsx b/client/src/features/RushGame/RushGameSections/FinalResult.tsx index 82e52117..02893571 100644 --- a/client/src/features/RushGame/RushGameSections/FinalResult.tsx +++ b/client/src/features/RushGame/RushGameSections/FinalResult.tsx @@ -66,7 +66,7 @@ export default function FinalResult({ unblockNavigation }: FinalResultProps) { const rightWinStatus = getWinStatus(rightOptionRatio, leftOptionRatio); function formatNumber(value?: number): string { - if (value === undefined) return ""; + if (value === undefined || value === null) return ""; return value.toLocaleString("en-US"); }