Bugfix: match scores weren't editable

This commit is contained in:
Felix Hamme 2019-05-29 08:40:11 +02:00
parent 0aa8f307ec
commit 4a444babd4
1 changed files with 2 additions and 2 deletions

View File

@ -155,8 +155,8 @@ function MatchModal(props) {
return (<Modal isOpen={props.isOpen} toggle={props.toggle}>
<ModalHeader toggle={props.toggle}>{title}</ModalHeader>
<ModalBody>
{props.matchState === 'in_progress' ? <EditableMatchTable match={props.match}/> :
<MatchTable match={props.match} matchStatus={props.matchState}/>}
{props.match.state === 'in_progress' ? <EditableMatchTable match={props.match}/> :
<MatchTable match={props.match} matchStatus={props.match.state}/>}
</ModalBody>
<ModalFooter>
{actionButton}