This commit is contained in:
Rike-Benjamin Schuppner 2024-08-31 14:28:30 +03:00
parent 2b36bd712e
commit 8a8206e2a1
2 changed files with 2 additions and 2 deletions

View file

@ -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!` }
</text>
</>) : null
}

View file

@ -193,7 +193,7 @@ function Pelita() {
{state === "intro" ? showIntro() : null}
{state === "match" ?
{state === "match" && gameState ?
<PelitaMain gameState={gameState}></PelitaMain>
: null
}