aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/GolfWatchApps
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/app/components/GolfWatchApps')
-rw-r--r--frontend/app/components/GolfWatchApps/GolfWatchAppFinished.tsx9
-rw-r--r--frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx3
2 files changed, 3 insertions, 9 deletions
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 (
- <div className="min-h-screen bg-gray-100 flex items-center justify-center">
- <div className="text-center">
- <h1 className="text-4xl font-bold text-black-600 mb-4">Finished</h1>
- </div>
- </div>
- );
-}
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")}`;