Merge pull request #32 from turniere/ticket/TURNIERE-207
Bugfix: match scores weren't editable
This commit is contained in:
commit
207f1a6686
|
|
@ -155,8 +155,8 @@ function MatchModal(props) {
|
||||||
return (<Modal isOpen={props.isOpen} toggle={props.toggle}>
|
return (<Modal isOpen={props.isOpen} toggle={props.toggle}>
|
||||||
<ModalHeader toggle={props.toggle}>{title}</ModalHeader>
|
<ModalHeader toggle={props.toggle}>{title}</ModalHeader>
|
||||||
<ModalBody>
|
<ModalBody>
|
||||||
{props.matchState === 'in_progress' ? <EditableMatchTable match={props.match}/> :
|
{props.match.state === 'in_progress' ? <EditableMatchTable match={props.match}/> :
|
||||||
<MatchTable match={props.match} matchStatus={props.matchState}/>}
|
<MatchTable match={props.match} matchStatus={props.match.state}/>}
|
||||||
</ModalBody>
|
</ModalBody>
|
||||||
<ModalFooter>
|
<ModalFooter>
|
||||||
{actionButton}
|
{actionButton}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue