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/GolfWatchApp.client.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'frontend/app/components/GolfWatchApp.client.tsx') diff --git a/frontend/app/components/GolfWatchApp.client.tsx b/frontend/app/components/GolfWatchApp.client.tsx index 7eb20cf..9a641f0 100644 --- a/frontend/app/components/GolfWatchApp.client.tsx +++ b/frontend/app/components/GolfWatchApp.client.tsx @@ -3,7 +3,6 @@ import type { components } from "../.server/api/schema"; import useWebSocket, { ReadyState } from "../hooks/useWebSocket"; import type { PlayerInfo } from "../models/PlayerInfo"; import GolfWatchAppConnecting from "./GolfWatchApps/GolfWatchAppConnecting"; -import GolfWatchAppFinished from "./GolfWatchApps/GolfWatchAppFinished"; import GolfWatchAppGaming from "./GolfWatchApps/GolfWatchAppGaming"; import GolfWatchAppStarting from "./GolfWatchApps/GolfWatchAppStarting"; import GolfWatchAppWaiting from "./GolfWatchApps/GolfWatchAppWaiting"; @@ -240,7 +239,7 @@ export default function GolfWatchApp({ return ; } else if (gameState === "starting") { return ; - } else if (gameState === "gaming") { + } else if (gameState === "gaming" || gameState === "finished") { return ( ); - } else if (gameState === "finished") { - return ; } else { return null; } -- cgit v1.3.1