For the sake of not exceeding max line length

This commit is contained in:
emelko
2018-07-30 18:29:35 +02:00
parent 20d1af4cdd
commit 5f840aa669
+5 -1
View File
@@ -117,7 +117,11 @@ function getLabel(symptomName, symptom) {
}
},
mucus: mucus => {
if (typeof mucus.feeling === 'number' && typeof mucus.texture === 'number' && typeof mucus.value === 'number') {
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