types
This commit is contained in:
parent
2b36bd712e
commit
8a8206e2a1
|
@ -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
|
||||
}
|
||||
|
|
|
@ -193,7 +193,7 @@ function Pelita() {
|
|||
|
||||
{state === "intro" ? showIntro() : null}
|
||||
|
||||
{state === "match" ?
|
||||
{state === "match" && gameState ?
|
||||
<PelitaMain gameState={gameState}></PelitaMain>
|
||||
: null
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue