Ignore temp drop after 3 regular high temps

This commit is contained in:
Julia Friesel
2018-09-28 20:29:09 +02:00
parent 17bb23fd91
commit 61275e83a0
3 changed files with 23 additions and 3 deletions
+2 -2
View File
@@ -122,9 +122,9 @@ export default class CycleChart extends Component {
(cycleDay.cervix.opening + cycleDay.cervix.firmness)
} else if (symptom === 'sex') {
// solo = 1 + partner = 2
acc.sex = cycleDay.sex &&
acc.sex = cycleDay.sex &&
(cycleDay.sex.solo + 2 * cycleDay.sex.partner)
} else if (symptom === 'pain') {
} else if (symptom === 'pain') {
// is any pain documented?
acc.pain = cycleDay.pain &&
Object.values(cycleDay.pain).some(x => x === true)