Merge pull request #32 from turniere/ticket/TURNIERE-207

Bugfix: match scores weren't editable
This commit is contained in:
Jonny 2019-05-29 08:45:17 +02:00 committed by GitHub
commit 207f1a6686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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}> 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}