Fixing dom nesting.

This commit is contained in:
2020-04-16 09:45:16 -07:00
parent afd548ae0b
commit ced8faf6f6

View File

@@ -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>
);