From: Carl Worth Date: Fri, 5 Jun 2020 17:50:04 +0000 (-0700) Subject: tictactoe: Improve player-info block for the case of no assigned team X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=commitdiff_plain;h=1809f95530cf644d89b33ac30c2c574ecd9365bd tictactoe: Improve player-info block for the case of no assigned team An explicit clause of "not on a team" is more clear than the dangling "on team: ". --- diff --git a/tictactoe/tictactoe.jsx b/tictactoe/tictactoe.jsx index a7614bc..f5951f1 100644 --- a/tictactoe/tictactoe.jsx +++ b/tictactoe/tictactoe.jsx @@ -90,7 +90,8 @@ function PlayerInfo(props) { return (

Player

- {props.name}, ID: {props.id}, on team: {props.team} + {props.name}, ID: {props.id}, + {props.team ? ` on team ${props.team}` : " not on a team"}
); }