X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=tictactoe%2Ftictactoe.jsx;h=579526b7dcb401e0310027da092f47c8fead5691;hp=46cee2a7f42e9f4bc3a7809e7d93b3855eb383ed;hb=868ec74bb12cbae18d2bd666d67f9e82ba38ee96;hpb=7b54e4a8c6a461c186125b5e36d4d312ee9b41b2 diff --git a/tictactoe/tictactoe.jsx b/tictactoe/tictactoe.jsx index 46cee2a..579526b 100644 --- a/tictactoe/tictactoe.jsx +++ b/tictactoe/tictactoe.jsx @@ -84,14 +84,14 @@ function GameInfo(props) { } function PlayerInfo(props) { - if (! props.id) + if (! props.player.id) return null; return (

Player

- {props.name}, ID: {props.id}, - {props.team ? ` on team ${props.team}` : " not on a team"} + {props.player.name} + {props.player.team ? ` (${props.player.team})` : ""}
); } @@ -303,14 +303,12 @@ class Game extends React.Component { />, ,
-   + {" "}
{status}