From 80ee46c81dda5331f66aa401435447f22ff187cd Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 21 Mar 2025 09:23:01 +0900 Subject: feat(frontend): show game result in 1v1 watch --- frontend/app/components/GolfWatchApp.tsx | 1 - .../GolfWatchApps/GolfWatchAppGaming1v1.tsx | 23 ++++++++++++---------- 2 files changed, 13 insertions(+), 11 deletions(-) (limited to 'frontend/app/components') diff --git a/frontend/app/components/GolfWatchApp.tsx b/frontend/app/components/GolfWatchApp.tsx index cfd5e74..492d555 100644 --- a/frontend/app/components/GolfWatchApp.tsx +++ b/frontend/app/components/GolfWatchApp.tsx @@ -138,7 +138,6 @@ export default function GolfWatchApp({ problemTitle={game.problem.title} problemDescription={game.problem.description} sampleCode={game.problem.sample_code} - gameResult={null /* TODO */} /> ) : (
{gameDisplayName}
- {gameResult ? ( + {gameResultKind ? (
- {gameResult === "winA" + {gameResultKind === "winA" ? `勝者 ${playerProfileA.displayName}` - : gameResult === "winB" + : gameResultKind === "winB" ? `勝者 ${playerProfileB.displayName}` : "引き分け"}
-- cgit v1.2.3-70-g09d2