From 67c7233b20263650f4956b43d8935303bb285cd8 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 18 Aug 2024 12:36:47 +0900 Subject: feat(frontend): do not transit to finished screen in watch page --- frontend/app/components/GolfWatchApps/GolfWatchAppFinished.tsx | 9 --------- frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx | 3 +++ 2 files changed, 3 insertions(+), 9 deletions(-) delete mode 100644 frontend/app/components/GolfWatchApps/GolfWatchAppFinished.tsx (limited to 'frontend/app/components/GolfWatchApps') diff --git a/frontend/app/components/GolfWatchApps/GolfWatchAppFinished.tsx b/frontend/app/components/GolfWatchApps/GolfWatchAppFinished.tsx deleted file mode 100644 index 58cb2df..0000000 --- a/frontend/app/components/GolfWatchApps/GolfWatchAppFinished.tsx +++ /dev/null @@ -1,9 +0,0 @@ -export default function GolfWatchAppFinished() { - return ( -
-
-

Finished

-
-
- ); -} 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")}`; -- cgit v1.2.3-70-g09d2