Adds value of note to pain label on cycle day overview
This commit is contained in:
@@ -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})`
|
||||
|
||||
Reference in New Issue
Block a user