Fixing dom nesting.
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user