diff options
Diffstat (limited to 'frontend/src/components/displays/ReflecBeatScoreDisplay.tsx')
| -rw-r--r-- | frontend/src/components/displays/ReflecBeatScoreDisplay.tsx | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/frontend/src/components/displays/ReflecBeatScoreDisplay.tsx b/frontend/src/components/displays/ReflecBeatScoreDisplay.tsx index 27260e8..fc7a483 100644 --- a/frontend/src/components/displays/ReflecBeatScoreDisplay.tsx +++ b/frontend/src/components/displays/ReflecBeatScoreDisplay.tsx @@ -322,16 +322,20 @@ const ReflecBeatScoreDisplay: 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> |
