aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-11-18 21:14:38 -0800
committerPinapelz <yukais@pinapelz.com>2025-11-18 21:19:43 -0800
commit281e400467da82c3ef8d9d31f176587b3f6990d3 (patch)
tree1da235057a0c56aa79a92d06fb6469fc9627bbf5
parent74978fcdd39899fa520e11268a62e2cc4cc99814 (diff)
fix: correctly show N/A for date data in table score view
-rw-r--r--frontend/src/components/displays/DancearoundScoreDisplay.tsx2
-rw-r--r--frontend/src/components/displays/DancerushScoreDisplay.tsx2
-rw-r--r--frontend/src/components/displays/GenericScoreDisplay.tsx2
-rw-r--r--frontend/src/components/displays/MusicDiverScoreDisplay.tsx2
-rw-r--r--frontend/src/components/displays/NostalgiaScoreDisplay.tsx2
-rw-r--r--frontend/src/components/displays/ReflecBeatScoreDisplay.tsx2
-rw-r--r--frontend/src/components/displays/TaikoScoreDisplay.tsx2
7 files changed, 7 insertions, 7 deletions
diff --git a/frontend/src/components/displays/DancearoundScoreDisplay.tsx b/frontend/src/components/displays/DancearoundScoreDisplay.tsx
index 4b365dd..b11bddc 100644
--- a/frontend/src/components/displays/DancearoundScoreDisplay.tsx
+++ b/frontend/src/components/displays/DancearoundScoreDisplay.tsx
@@ -399,7 +399,7 @@ const DancearoundScoreDisplay: React.FC<ScoreDisplayProps> = ({
</div>
) : key === "timestamp" ? (
<span className="text-slate-400 text-xs">
- {new Date(
+ {score[key] === 0 ? "N/A" : new Date(
typeof score[key] === "number"
? score[key]
: score[key],
diff --git a/frontend/src/components/displays/DancerushScoreDisplay.tsx b/frontend/src/components/displays/DancerushScoreDisplay.tsx
index 85bdae8..502215e 100644
--- a/frontend/src/components/displays/DancerushScoreDisplay.tsx
+++ b/frontend/src/components/displays/DancerushScoreDisplay.tsx
@@ -393,7 +393,7 @@ const DancerushScoreDisplay: React.FC<ScoreDisplayProps> = ({
</div>
) : key === "timestamp" ? (
<span className="text-slate-400 text-xs">
- {new Date(
+ {score[key] === 0 ? "N/A" : new Date(
typeof score[key] === "number"
? score[key]
: score[key],
diff --git a/frontend/src/components/displays/GenericScoreDisplay.tsx b/frontend/src/components/displays/GenericScoreDisplay.tsx
index 08d15ef..b1a9853 100644
--- a/frontend/src/components/displays/GenericScoreDisplay.tsx
+++ b/frontend/src/components/displays/GenericScoreDisplay.tsx
@@ -407,7 +407,7 @@ const ScoreDisplay: React.FC<ScoreDisplayProps> = ({
</div>
) : key === "timestamp" ? (
<span className="text-slate-400 text-[10px] sm:text-xs whitespace-nowrap">
- {new Date(
+ {score[key] === 0 ? "N/A" : new Date(
typeof score[key] === "number"
? score[key]
: score[key],
diff --git a/frontend/src/components/displays/MusicDiverScoreDisplay.tsx b/frontend/src/components/displays/MusicDiverScoreDisplay.tsx
index 9da742f..c11ba9f 100644
--- a/frontend/src/components/displays/MusicDiverScoreDisplay.tsx
+++ b/frontend/src/components/displays/MusicDiverScoreDisplay.tsx
@@ -415,7 +415,7 @@ const MusicDiverDisplay: React.FC<ScoreDisplayProps> = ({
</div>
) : key === "timestamp" ? (
<span className="text-slate-400 text-[10px] sm:text-xs whitespace-nowrap">
- {new Date(
+ {score[key] === 0 ? "N/A" : new Date(
typeof score[key] === "number"
? score[key]
: score[key],
diff --git a/frontend/src/components/displays/NostalgiaScoreDisplay.tsx b/frontend/src/components/displays/NostalgiaScoreDisplay.tsx
index 723a3f0..39710a0 100644
--- a/frontend/src/components/displays/NostalgiaScoreDisplay.tsx
+++ b/frontend/src/components/displays/NostalgiaScoreDisplay.tsx
@@ -400,7 +400,7 @@ const NostalgiaScoreDisplay: React.FC<ScoreDisplayProps> = ({
</div>
) : key === "timestamp" ? (
<span className="text-slate-400 text-[10px] sm:text-xs whitespace-nowrap">
- {new Date(
+ {score[key] === 0 ? "N/A" : new Date(
typeof score[key] === "number"
? score[key]
: score[key],
diff --git a/frontend/src/components/displays/ReflecBeatScoreDisplay.tsx b/frontend/src/components/displays/ReflecBeatScoreDisplay.tsx
index fc7a483..c6215cc 100644
--- a/frontend/src/components/displays/ReflecBeatScoreDisplay.tsx
+++ b/frontend/src/components/displays/ReflecBeatScoreDisplay.tsx
@@ -397,7 +397,7 @@ const ReflecBeatScoreDisplay: React.FC<ScoreDisplayProps> = ({
</div>
) : key === "timestamp" ? (
<span className="text-slate-400 text-[10px] sm:text-xs whitespace-nowrap">
- {new Date(
+ {score[key] === 0 ? "N/A" : new Date(
typeof score[key] === "number"
? score[key]
: score[key],
diff --git a/frontend/src/components/displays/TaikoScoreDisplay.tsx b/frontend/src/components/displays/TaikoScoreDisplay.tsx
index bda0d8e..0573051 100644
--- a/frontend/src/components/displays/TaikoScoreDisplay.tsx
+++ b/frontend/src/components/displays/TaikoScoreDisplay.tsx
@@ -492,7 +492,7 @@ const TaikoScoreDisplay: React.FC<ScoreDisplayProps> = ({
</div>
) : key === "timestamp" ? (
<span className="text-slate-400 text-[10px] sm:text-xs whitespace-nowrap">
- {new Date(
+ {score[key] === 0 ? "N/A" : new Date(
typeof score[key] === "number"
? score[key]
: score[key],
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage