Fix mucus.value instead of mucus.computedNfp; additional check for mucus.value
This commit is contained in:
1 parent
3a4ce79ea2
commit
20d1af4cdd
1 file changed
+2
-2
@@ -117,8 +117,8 @@ function getLabel(symptomName, symptom) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mucus: mucus => {
|
mucus: mucus => {
|
||||||
if (typeof mucus.feeling === 'number' && typeof mucus.texture === 'number') {
|
if (typeof mucus.feeling === 'number' && typeof mucus.texture === 'number' && typeof mucus.value === 'number') {
|
||||||
let mucusLabel = `${feelingLabels[mucus.feeling]} + ${textureLabels[mucus.texture]} ( ${computeSensiplanMucusLabels[mucus.computedNfp]} )`
|
let mucusLabel = `${feelingLabels[mucus.feeling]} + ${textureLabels[mucus.texture]} ( ${computeSensiplanMucusLabels[mucus.value]} )`
|
||||||
if (mucus.exclude) mucusLabel = "( " + mucusLabel + " )"
|
if (mucus.exclude) mucusLabel = "( " + mucusLabel + " )"
|
||||||
return mucusLabel
|
return mucusLabel
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user