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 => {
|
||||
if (typeof mucus.feeling === 'number' && typeof mucus.texture === 'number') {
|
||||
let mucusLabel = `${feelingLabels[mucus.feeling]} + ${textureLabels[mucus.texture]} ( ${computeSensiplanMucusLabels[mucus.computedNfp]} )`
|
||||
if (typeof mucus.feeling === 'number' && typeof mucus.texture === 'number' && typeof mucus.value === 'number') {
|
||||
let mucusLabel = `${feelingLabels[mucus.feeling]} + ${textureLabels[mucus.texture]} ( ${computeSensiplanMucusLabels[mucus.value]} )`
|
||||
if (mucus.exclude) mucusLabel = "( " + mucusLabel + " )"
|
||||
return mucusLabel
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user