diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-18 12:36:47 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-18 13:12:34 +0900 |
| commit | 67c7233b20263650f4956b43d8935303bb285cd8 (patch) | |
| tree | 743fb16604410035b7d3e16f503e19bdb3745c30 /frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx | |
| parent | c337d3066797050605b2e4e9c181c689f61d7482 (diff) | |
| download | iosdc-japan-2024-albatross-67c7233b20263650f4956b43d8935303bb285cd8.tar.gz iosdc-japan-2024-albatross-67c7233b20263650f4956b43d8935303bb285cd8.tar.zst iosdc-japan-2024-albatross-67c7233b20263650f4956b43d8935303bb285cd8.zip | |
feat(frontend): do not transit to finished screen in watch page
Diffstat (limited to 'frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx')
| -rw-r--r-- | frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx b/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx index abdc855..b2598fc 100644 --- a/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx +++ b/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx @@ -25,6 +25,9 @@ export default function GolfWatchAppGaming({ }: Props) { const leftTime = (() => { const k = gameDurationSeconds + leftTimeSeconds; + if (k <= 0) { + return "00:00"; + } const m = Math.floor(k / 60); const s = k % 60; return `${m.toString().padStart(2, "0")}:${s.toString().padStart(2, "0")}`; |
