Skip to content
Snippets Groups Projects
Commit d711b411 authored by Bl00dyMarie's avatar Bl00dyMarie
Browse files

Adds value of note to pain label on cycle day overview

parent ad9997f7
No related branches found
No related tags found
No related merge requests found
......@@ -175,9 +175,12 @@ function getLabel(symptomName, symptom) {
let painLabel = []
if (pain && Object.values(pain).some(val => val)){
Object.keys(pain).forEach(key => {
if(pain[key]) {
if(pain[key] && key !== 'note') {
painLabel.push(painLabels[key])
}
if(key === 'note'){
painLabel.push(pain.note)
}
})
painLabel = painLabel.join(', ')
if (pain.exclude) painLabel = `(${painLabel})`
......
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