Remove now superfluous check for bleeding symptom
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user