diff --git a/components/cycle-day/symptoms/symptom-view.js b/components/cycle-day/symptoms/symptom-view.js index aa19a2e..bd8214e 100644 --- a/components/cycle-day/symptoms/symptom-view.js +++ b/components/cycle-day/symptoms/symptom-view.js @@ -44,9 +44,10 @@ export default class SymptomView extends Component { } isDeleteIconActive() { - return Object.values(this.state).some(value => { + return Object.keys(this.state).some(key => { + if (key === 'showInfo') return // is there any meaningful value in the current state? - return value || value === 0 + return this.state[key] || this.state[key] === 0 }) }