diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-11-08 21:19:35 -0800 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-11-08 21:19:35 -0800 |
| commit | e967cc93ac85a07082da67211513815ec7f2eab3 (patch) | |
| tree | b90873c4edac9fc90fb958b4860cd6d77c0d35e0 /frontend/src/components/displays/TaikoScoreDisplay.tsx | |
| parent | cdb7a1f9a6caab87ebfe69f1e8486fb229c558b5 (diff) | |
allow for timestamp = 0 to represent unknown date which a score was
achieved
Diffstat (limited to 'frontend/src/components/displays/TaikoScoreDisplay.tsx')
| -rw-r--r-- | frontend/src/components/displays/TaikoScoreDisplay.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/frontend/src/components/displays/TaikoScoreDisplay.tsx b/frontend/src/components/displays/TaikoScoreDisplay.tsx index ead13b3..3c6ea01 100644 --- a/frontend/src/components/displays/TaikoScoreDisplay.tsx +++ b/frontend/src/components/displays/TaikoScoreDisplay.tsx @@ -68,6 +68,8 @@ const TaikoScoreDisplay: React.FC<ScoreDisplayProps> = ({ // Handle timestamps if (key === "timestamp" || key === "date") { + if(value === 0) + return "N/A"; const date = new Date(typeof value === "number" ? value : value); return date.toLocaleDateString(); } |
