From e967cc93ac85a07082da67211513815ec7f2eab3 Mon Sep 17 00:00:00 2001
From: Pinapelz <yukais@pinapelz.com>
Date: Sat, 8 Nov 2025 21:19:35 -0800
Subject: allow for timestamp = 0 to represent unknown date which a score was
 achieved

---
 frontend/src/components/displays/MusicDiverScoreDisplay.tsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'frontend/src/components/displays/MusicDiverScoreDisplay.tsx')

diff --git a/frontend/src/components/displays/MusicDiverScoreDisplay.tsx b/frontend/src/components/displays/MusicDiverScoreDisplay.tsx
index 282268a..3d91412 100644
--- a/frontend/src/components/displays/MusicDiverScoreDisplay.tsx
+++ b/frontend/src/components/displays/MusicDiverScoreDisplay.tsx
@@ -53,6 +53,8 @@ const MusicDiverDisplay: 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();
     }
-- 
cgit v1.2.3

