diff --git a/components/cycle-day/symptoms/temperature.js b/components/cycle-day/symptoms/temperature.js index 810713e..8171f86 100644 --- a/components/cycle-day/symptoms/temperature.js +++ b/components/cycle-day/symptoms/temperature.js @@ -47,7 +47,7 @@ export default class Temp extends SymptomView { } else { const prevTemp = getPreviousTemperature(props.date) if (prevTemp) { - this.state.temperature = prevTemp.toString() + this.state.suggestedTemperature = prevTemp.toString() this.state.isSuggestion = true } } @@ -56,10 +56,9 @@ export default class Temp extends SymptomView { symptomName = 'temperature' isDeleteIconActive() { - return Object.keys(this.state).some(key => { - // the time is always prefilled, so it's not relevant for setting - // the delete button active - if (key === 'time') return + return ['temperature', 'note', 'exclude'].some(key => { + // the time is always and the suggested temp sometimes prefilled, so they're not relevant for setting + // the delete button active. return this.state[key] || this.state[key] === 0 }) } @@ -151,8 +150,7 @@ export default class Temp extends SymptomView {