Hide Join Games when no games to join.

logins
Thomas Hintz 5 years ago
parent dd38ed5615
commit ab7a0991b3

@ -29,9 +29,11 @@ class CreateOrJoin extends React.Component {
<Button size='large' className='shadow' onClick={this.props.showNewGame}> <Button size='large' className='shadow' onClick={this.props.showNewGame}>
New Game New Game
</Button> </Button>
{this.props.start.start.games.length > 0 ? (
<Button size='large' className='shadow' onClick={this.props.showJoinGame}> <Button size='large' className='shadow' onClick={this.props.showJoinGame}>
Join Game Join Game
</Button> </Button>
) : (<Fragment />)}
</Fragment> </Fragment>
); );
} }

Loading…
Cancel
Save