From e31c22dda15a665ffefc13b14a8b377062ef0351 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 21 Mar 2025 10:16:42 +0900 Subject: feat(frontend): make main players optional --- .../components/GolfWatchApps/GolfWatchAppWaiting1v1.tsx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'frontend/app/components/GolfWatchApps/GolfWatchAppWaiting1v1.tsx') diff --git a/frontend/app/components/GolfWatchApps/GolfWatchAppWaiting1v1.tsx b/frontend/app/components/GolfWatchApps/GolfWatchAppWaiting1v1.tsx index 33f37be..ae88295 100644 --- a/frontend/app/components/GolfWatchApps/GolfWatchAppWaiting1v1.tsx +++ b/frontend/app/components/GolfWatchApps/GolfWatchAppWaiting1v1.tsx @@ -3,8 +3,8 @@ import PlayerNameAndIcon from "../PlayerNameAndIcon"; type Props = { gameDisplayName: string; - playerProfileA: PlayerProfile; - playerProfileB: PlayerProfile; + playerProfileA: PlayerProfile | null; + playerProfileB: PlayerProfile | null; }; export default function GolfWatchAppWaiting1v1({ @@ -18,9 +18,17 @@ export default function GolfWatchAppWaiting1v1({
{gameDisplayName}
- + {playerProfileA ? ( + + ) : ( +
+ )}
vs.
- + {playerProfileB ? ( + + ) : ( +
+ )}
); -- cgit v1.2.3-70-g09d2