Changes cervix value to check for opening and firmness value

This commit is contained in:
emelko
2018-09-05 15:27:04 +02:00
parent 21d6e24f23
commit 1c2c45f8c6
3 changed files with 148 additions and 138 deletions
+2 -2
View File
@@ -36,6 +36,6 @@ export default function (cycleDays, tempEvalEndIndex) {
return { detected: false }
}
function isClosedAndHard (cervixValue) {
return cervixValue.isClosed && cervixValue.isHard
function isClosedAndHard (cervix) {
return cervix.value.opening === 0 && cervix.value.firmness === 0
}