Add back cervix value filter
This commit is contained in:
@@ -2,6 +2,7 @@ export default function (cycleDays, tempEvalEndIndex) {
|
|||||||
const notDetected = { detected: false }
|
const notDetected = { detected: false }
|
||||||
const cervixDays = cycleDays
|
const cervixDays = cycleDays
|
||||||
.filter(day => day.cervix && !day.cervix.exclude)
|
.filter(day => day.cervix && !day.cervix.exclude)
|
||||||
|
.filter(day => typeof day.cervix.opening === 'number' && typeof day.cervix.firmness === 'number')
|
||||||
|
|
||||||
// we search for the day of cervix peak, which must:
|
// we search for the day of cervix peak, which must:
|
||||||
// * have fertile cervix values
|
// * have fertile cervix values
|
||||||
|
|||||||
Reference in New Issue
Block a user