Replacing mucus default with secondarySymptom

This commit is contained in:
emelko
2018-09-05 15:29:32 +02:00
parent 1c2c45f8c6
commit 20dc238ea4
2 changed files with 14 additions and 7 deletions
+4 -1
View File
@@ -16,7 +16,10 @@ export default function getSymptoThermalStatus(cycleInfo) {
// if there was no first higher measurement in the previous cycle,
// no infertile pre-ovulatory phase may be assumed
if (previousCycle) {
const statusForLast = getSymptoThermalStatus({ cycle: previousCycle })
const statusForLast = getSymptoThermalStatus({
cycle: previousCycle,
secondarySymptom: secondarySymptom
})
if (statusForLast.temperatureShift) {
const preOvuPhase = getPreOvulatoryPhase(
cycle,