Write the name of the tournament owner in the tournament view

This commit is contained in:
Felix Hamme 2018-12-11 16:05:44 +01:00
parent 115df26572
commit 0eb4df58cf
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@ function Tournament(props) {
{props.tournament.isPublic ? 'Das Turnier ist öffentlich.' : 'Das Turnier ist privat.'}
</ListGroupItem>
<ListGroupItem>Turnier-Code: <b>{props.tournament.code}</b></ListGroupItem>
<ListGroupItem>von <b>{props.tournament.ownerUsername}</b></ListGroupItem>
</ListGroup>
</Container>
<div className='stages pt-5'>
@ -310,6 +311,7 @@ function convertTournament(apiTournament) {
description: apiTournament.description,
name: apiTournament.name,
public: apiTournament.public,
ownerUsername: apiTournament.owner_username,
groupStage: groupStage,
playoffStages: playoffStages
};