fixes bugs on ios where entered symptoms were not displayed

This commit is contained in:
tina
2019-02-18 20:33:05 +01:00
parent 6592d742af
commit 0a8dcf87a4
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -43,11 +43,11 @@ export default class DayColumn extends Component {
} else if (symptom === 'pain') {
// is any pain documented?
acc.pain = cycleDay.pain &&
Object.values(cycleDay.pain).some(x => x === true)
Object.values({...cycleDay.pain}).some(x => x === true)
} else if (symptom === 'mood') {
// is mood documented?
acc.mood = cycleDay.mood &&
Object.values(cycleDay.mood).some(x => x === true)
Object.values({...cycleDay.mood}).some(x => x === true)
}
acc[`${symptom}Exclude`] = cycleDay[symptom] && cycleDay[symptom].exclude
return acc