If sex.other and/or pain.other gets a note, label will only display the note itself

This commit is contained in:
emelko
2018-08-30 23:45:40 +02:00
parent 9f62ab34f3
commit ab4149373f
@@ -171,6 +171,7 @@ function getLabel(symptomName, symptom) {
}
if(key === "note" && sex.note) {
sexLabel.push(sex.note)
sexLabel.shift(sexLabels['other'])
}
})
sexLabel = sexLabel.join(', ')
@@ -187,6 +188,7 @@ function getLabel(symptomName, symptom) {
}
if(key === "note" && pain.note) {
painLabel.push(pain.note)
painLabel.shift(painLabels['other'])
}
})
painLabel = painLabel.join(', ')