From ae0d9094070e5f533e0628bda0a6121de2d61532 Mon Sep 17 00:00:00 2001 From: Julia Friesel Date: Tue, 4 Feb 2020 12:18:24 +0100 Subject: [PATCH] Remove now superfluous check for bleeding symptom --- lib/set-new-cycle-start.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/set-new-cycle-start.js b/lib/set-new-cycle-start.js index 34ec016..bdc6872 100644 --- a/lib/set-new-cycle-start.js +++ b/lib/set-new-cycle-start.js @@ -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