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

Loading…
Cancel
Save