From 1809f95530cf644d89b33ac30c2c574ecd9365bd Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 5 Jun 2020 10:50:04 -0700 Subject: [PATCH 1/1] 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: ". --- tictactoe/tictactoe.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"}
); } -- 2.43.0