Skip to content
Snippets Groups Projects
Commit ab414937 authored by emelko's avatar emelko
Browse files

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

parent 9f62ab34
No related branches found
No related tags found
No related merge requests found
...@@ -171,6 +171,7 @@ function getLabel(symptomName, symptom) { ...@@ -171,6 +171,7 @@ function getLabel(symptomName, symptom) {
} }
if(key === "note" && sex.note) { if(key === "note" && sex.note) {
sexLabel.push(sex.note) sexLabel.push(sex.note)
sexLabel.shift(sexLabels['other'])
} }
}) })
sexLabel = sexLabel.join(', ') sexLabel = sexLabel.join(', ')
...@@ -187,6 +188,7 @@ function getLabel(symptomName, symptom) { ...@@ -187,6 +188,7 @@ function getLabel(symptomName, symptom) {
} }
if(key === "note" && pain.note) { if(key === "note" && pain.note) {
painLabel.push(pain.note) painLabel.push(pain.note)
painLabel.shift(painLabels['other'])
} }
}) })
painLabel = painLabel.join(', ') painLabel = painLabel.join(', ')
......
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