Skip to content
Snippets Groups Projects
Commit 8efe22d8 authored by Hugo Kerstens's avatar Hugo Kerstens
Browse files

Fix unable to save feedback with score 0

parent 1a1b0f20
No related branches found
No related tags found
No related merge requests found
......@@ -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}"?`}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment