Merge branch 'Fix-label-on-cycle-day-overview' into 'master'

Bugfix

See merge request bloodyhealth/drip!39
This commit is contained in:
bl00dymarie
2018-07-31 07:00:56 +00:00
+6 -2
View File
@@ -117,8 +117,12 @@ 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
}