diff --git a/components/helpers/chart.js b/components/helpers/chart.js index d59a55a63086cf320ea1d9f1f33f3845528b9f0c..dac2fafd0c5faa2943cc37a35a7a09881d3b5bd0 100644 --- a/components/helpers/chart.js +++ b/components/helpers/chart.js @@ -161,9 +161,13 @@ export const symptomColorMethods = { const colorIndex = value return colorIndex }, - 'default': () => { // desire, pain, mood, note - const colorIndex = 0 + 'desire': (symptomData) => { + const { value } = symptomData + const colorIndex = value return colorIndex + }, + 'default': () => { //pain, mood, note + return 0 } }