Don't show delete icon just because symptom info is open

This commit is contained in:
Julia Friesel
2019-05-20 06:08:46 +02:00
parent 472d793627
commit 59c3636139
@@ -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
})
}