Fix bug preventing the edit match modal from showing to the owner

This commit is contained in:
Jonny 2019-05-29 08:32:42 +02:00
parent 3286120f26
commit 7f28252ae8
1 changed files with 2 additions and 2 deletions

View File

@ -19,14 +19,14 @@ import {Match} from '../js/components/Match';
class PrivateTournamentPage extends React.Component { class PrivateTournamentPage extends React.Component {
render() { render() {
const {ownerUsername, playoffStages} = this.props.tournament; const {owner_username, playoffStages} = this.props.tournament;
const {isSignedIn, username} = this.props; const {isSignedIn, username} = this.props;
// TODO: Change href-prop of the anchor tag to contain the tournament code // TODO: Change href-prop of the anchor tag to contain the tournament code
return (<div className='pb-5'> return (<div className='pb-5'>
<TournamentInformationView tournament={this.props.tournament} currentpage='tournament'/> <TournamentInformationView tournament={this.props.tournament} currentpage='tournament'/>
<div className='stages pt-5'> <div className='stages pt-5'>
{playoffStages.map(stage => <Stage isSignedIn={isSignedIn} isOwner={username === ownerUsername} {playoffStages.map(stage => <Stage isSignedIn={isSignedIn} isOwner={username === owner_username}
level={getLevelName(stage.level)} matches={stage.matches} level={getLevelName(stage.level)} matches={stage.matches}
key={stage.level}/>)} key={stage.level}/>)}
</div> </div>