From 268ec56c88b0b6abf54c3e6a8a4cd6bace5bca29 Mon Sep 17 00:00:00 2001
From: emelko <ml.kochsiek@mailbox.org>
Date: Thu, 26 Mar 2020 23:30:50 +0100
Subject: [PATCH] Bring in different shades for desire dots on chart

---
 components/helpers/chart.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/components/helpers/chart.js b/components/helpers/chart.js
index d59a55a6..dac2fafd 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
   }
 }
 
-- 
GitLab