From 6649c6d950ee4216773d55f71b7e28eaef715ef5 Mon Sep 17 00:00:00 2001
From: Pinapelz <yukais@pinapelz.com>
Date: Sat, 8 Nov 2025 21:29:49 -0800
Subject: fix: show N/A for generic date data

---
 .../components/displays/NostalgiaScoreDisplay.tsx  | 24 +++++++++++++---------
 1 file changed, 14 insertions(+), 10 deletions(-)

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

diff --git a/frontend/src/components/displays/NostalgiaScoreDisplay.tsx b/frontend/src/components/displays/NostalgiaScoreDisplay.tsx
index b64a059..723a3f0 100644
--- a/frontend/src/components/displays/NostalgiaScoreDisplay.tsx
+++ b/frontend/src/components/displays/NostalgiaScoreDisplay.tsx
@@ -325,16 +325,20 @@ const NostalgiaScoreDisplay: React.FC<ScoreDisplayProps> = ({
               {/* Timestamp */}
               <div className="pt-4 border-t border-slate-800/50">
                 <p className="text-slate-500 text-[10px] sm:text-xs">
-                  {new Date(
-                    typeof timestamp === "number" ? timestamp : timestamp,
-                  ).toLocaleDateString()}{" "}
-                  •{" "}
-                  {new Date(
-                    typeof timestamp === "number" ? timestamp : timestamp,
-                  ).toLocaleTimeString([], {
-                    hour: "2-digit",
-                    minute: "2-digit",
-                  })}
+                  {timestamp === 0 ? "N/A" : (
+                    <>
+                      {new Date(
+                        typeof timestamp === "number" ? timestamp : timestamp,
+                      ).toLocaleDateString()}{" "}
+                      •{" "}
+                      {new Date(
+                        typeof timestamp === "number" ? timestamp : timestamp,
+                      ).toLocaleTimeString([], {
+                        hour: "2-digit",
+                        minute: "2-digit",
+                      })}
+                    </>
+                  )}
                 </p>
               </div>
             </div>
-- 
cgit v1.2.3

