From 8a8206e2a10d9b756b9c33b6b86f6a6d6839b625 Mon Sep 17 00:00:00 2001 From: Rike-Benjamin Schuppner Date: Sat, 31 Aug 2024 14:28:30 +0300 Subject: [PATCH] types --- app/maze.tsx | 2 +- app/pelita.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/maze.tsx b/app/maze.tsx index 50aab84..e531185 100644 --- a/app/maze.tsx +++ b/app/maze.tsx @@ -672,7 +672,7 @@ function Maze({ game_uuid, shape, walls, food, bots, team_names, say, whowins, g dominantBaseline="middle" textAnchor="middle" > - { whowins == 2 ? "DRAW" : `${team_names[whowins]} wins!` } + { whowins == null || whowins == 2 ? "DRAW" : `${team_names[whowins]} wins!` } ) : null } diff --git a/app/pelita.tsx b/app/pelita.tsx index 4e70372..6c2084c 100644 --- a/app/pelita.tsx +++ b/app/pelita.tsx @@ -193,7 +193,7 @@ function Pelita() { {state === "intro" ? showIntro() : null} - {state === "match" ? + {state === "match" && gameState ? : null }