Remove now superfluous check for bleeding symptom

This commit is contained in:
Julia Friesel
2020-02-04 12:18:24 +01:00
parent 963e0ffea0
commit ae0d909407
+1 -5
View File
@@ -12,7 +12,7 @@ export default function ({
if (checkIsMensesStart(nextOne)) {
nextOne.isCycleStart = true
}
} else if (bleedingValueAddedOrChanged(val)) {
} else {
cycleDay.bleeding = val
cycleDay.isCycleStart = checkIsMensesStart(cycleDay)
maybeClearOldCycleStarts(cycleDay)
@@ -24,10 +24,6 @@ export default function ({
return bleedingDeleted || bleedingExcluded
}
function bleedingValueAddedOrChanged(symptom, val) {
return symptom === 'bleeding' && val
}
function maybeClearOldCycleStarts() {
// if we have a new bleeding day, we need to clear the
// menses start marker from all following days of this