Make group advance input error message more verbose

This commit is contained in:
Felix Hamme 2019-06-17 22:28:24 +02:00
parent 682db6f832
commit 0c1f896360
1 changed files with 3 additions and 1 deletions

View File

@ -131,7 +131,9 @@ class CreateTournamentForm extends React.Component {
decrementText="÷2" decrementCallback={this.decreaseGroupAdvance}/>
</Col>
</Row>
<WarningPopup text='Füge bitte noch Teams hinzu, um so viele Teams im Playoff zu haben.'
<WarningPopup
text={'Füge bitte noch ' + (this.state.groupAdvance - this.state.teams.length)
+ ' Team(s) hinzu, um ' + this.state.groupAdvance + ' Team(s) im Playoff zu haben.'}
shown={this.state.teams.length < this.state.groupAdvance}/>
</FormGroup>
</Collapse>