Remove now superfluous check for bleeding symptom
This commit is contained in:
@@ -12,7 +12,7 @@ export default function ({
|
|||||||
if (checkIsMensesStart(nextOne)) {
|
if (checkIsMensesStart(nextOne)) {
|
||||||
nextOne.isCycleStart = true
|
nextOne.isCycleStart = true
|
||||||
}
|
}
|
||||||
} else if (bleedingValueAddedOrChanged(val)) {
|
} else {
|
||||||
cycleDay.bleeding = val
|
cycleDay.bleeding = val
|
||||||
cycleDay.isCycleStart = checkIsMensesStart(cycleDay)
|
cycleDay.isCycleStart = checkIsMensesStart(cycleDay)
|
||||||
maybeClearOldCycleStarts(cycleDay)
|
maybeClearOldCycleStarts(cycleDay)
|
||||||
@@ -24,10 +24,6 @@ export default function ({
|
|||||||
return bleedingDeleted || bleedingExcluded
|
return bleedingDeleted || bleedingExcluded
|
||||||
}
|
}
|
||||||
|
|
||||||
function bleedingValueAddedOrChanged(symptom, val) {
|
|
||||||
return symptom === 'bleeding' && val
|
|
||||||
}
|
|
||||||
|
|
||||||
function maybeClearOldCycleStarts() {
|
function maybeClearOldCycleStarts() {
|
||||||
// if we have a new bleeding day, we need to clear the
|
// if we have a new bleeding day, we need to clear the
|
||||||
// menses start marker from all following days of this
|
// menses start marker from all following days of this
|
||||||
|
|||||||
Reference in New Issue
Block a user