X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=tictactoe%2Ftictactoe.jsx;h=a7614bcaf56168424da88827830cfbbea54be6c9;hp=f1426ecff4f443c8837237fffd8caeef3f751153;hb=79ef861f4341e20501e9c540f9ed9c81ba52204b;hpb=80b53fb35b2026f0100572fc744d659532efe3f0 diff --git a/tictactoe/tictactoe.jsx b/tictactoe/tictactoe.jsx index f1426ec..a7614bc 100644 --- a/tictactoe/tictactoe.jsx +++ b/tictactoe/tictactoe.jsx @@ -72,6 +72,9 @@ events.addEventListener("game-state", event => { *********************************************************/ function GameInfo(props) { + if (! props.id) + return null; + return (

{props.id}

@@ -81,6 +84,9 @@ function GameInfo(props) { } function PlayerInfo(props) { + if (! props.id) + return null; + return (

Player