Commit 850ec209 authored by Anton Akhmerov's avatar Anton Akhmerov

Merge branch '199-unable-to-save-feedback' into 'master'

Fix unable to save feedback with score 0

Closes #199

See merge request !151
parents 1a1b0f20 8efe22d8
Pipeline #18016 passed with stages
in 2 minutes and 53 seconds
......@@ -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