Fixing dom nesting.

leave-game
Thomas Hintz 5 years ago
parent afd548ae0b
commit ced8faf6f6

@ -1555,9 +1555,7 @@ class Action extends React.Component {
const ffButtons = ( const ffButtons = (
<> <>
{cash < 10000 ? ( {cash < 10000 ? (
<p> <Button onClick={() => this.props.showScreen(SCREENS.loans)}>Raise ${formatMoney(10000 - cash)} Now</Button>
<Button onClick={() => this.props.showScreen(SCREENS.loans)}>Raise ${formatMoney(10000 - cash)} Now</Button>
</p>
) : (<></>)} ) : (<></>)}
<form onSubmit={this.bertSubmit}> <form onSubmit={this.bertSubmit}>
<label> <label>
@ -1586,10 +1584,10 @@ class Action extends React.Component {
</> </>
)} )}
</p> </p>
<p> <div>
{(this.props.player.name === this.props.game.currentPlayer) ? {(this.props.player.name === this.props.game.currentPlayer) ?
ffButtons : (<Fragment />)} ffButtons : (<Fragment />)}
</p> </div>
</div> </div>
</GroupBox> </GroupBox>
); );

Loading…
Cancel
Save