Commit 8efe22d8 authored by Hugo Kerstens's avatar Hugo Kerstens

Fix unable to save feedback with score 0

parent 1a1b0f20
......@@ -154,7 +154,7 @@ class EditPanel extends React.Component {
<div className='panel-block'>
<BackButton onClick={this.props.goBack} />
<SaveButton onClick={this.saveFeedback} exists={this.props.feedback}
disabled={!this.state.name || !this.state.score || isNaN(parseInt(this.state.score))} />
disabled={!this.state.name || (!this.state.score && this.state.score !== 0) || isNaN(parseInt(this.state.score))} />
<DeleteButton onClick={() => { this.setState({deleting: true}) }} exists={this.props.feedback} />
<ConfirmationModal
headerText={`Do you want to irreversibly delete feedback option "${this.state.name}"?`}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment