Skip to content
Snippets Groups Projects
Commit 32e6b2da authored by Julia Friesel's avatar Julia Friesel
Browse files

Add back cervix value filter

parent fa3a6fb2
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@ export default function (cycleDays, tempEvalEndIndex) {
const notDetected = { detected: false }
const cervixDays = cycleDays
.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:
// * have fertile cervix values
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment