If sex.other and/or pain.other gets a note, label will only display the note itself
This commit is contained in:
@@ -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) {
|
|||||||
}
|
}
|
||||||
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(', ')
|
||||||
|
|||||||
Reference in New Issue
Block a user