Skip to content
Snippets Groups Projects
Commit ac8d3837 authored by bl00dymarie's avatar bl00dymarie
Browse files

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

Bugfix

See merge request bloodyhealth/drip!39
parents 3a4ce79e 5f840aa6
No related branches found
No related tags found
No related merge requests found
...@@ -117,8 +117,12 @@ function getLabel(symptomName, symptom) { ...@@ -117,8 +117,12 @@ function getLabel(symptomName, symptom) {
} }
}, },
mucus: mucus => { mucus: mucus => {
if (typeof mucus.feeling === 'number' && typeof mucus.texture === 'number') { if (
let mucusLabel = `${feelingLabels[mucus.feeling]} + ${textureLabels[mucus.texture]} ( ${computeSensiplanMucusLabels[mucus.computedNfp]} )` 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 + " )" if (mucus.exclude) mucusLabel = "( " + mucusLabel + " )"
return mucusLabel return mucusLabel
} }
......
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