From ab4149373ff8f875b271bd155f15c7b96a8a3826 Mon Sep 17 00:00:00 2001
From: emelko <ml.kochsiek@mailbox.org>
Date: Thu, 30 Aug 2018 23:45:40 +0200
Subject: [PATCH] If sex.other and/or pain.other gets a note, label will only
 display the note itself

---
 components/cycle-day/cycle-day-overview.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/components/cycle-day/cycle-day-overview.js b/components/cycle-day/cycle-day-overview.js
index a75dda34..7efd6837 100644
--- a/components/cycle-day/cycle-day-overview.js
+++ b/components/cycle-day/cycle-day-overview.js
@@ -171,6 +171,7 @@ function getLabel(symptomName, symptom) {
           }
           if(key === "note" && sex.note) {
             sexLabel.push(sex.note)
+            sexLabel.shift(sexLabels['other'])
           }
         })
         sexLabel = sexLabel.join(', ')
@@ -187,6 +188,7 @@ function getLabel(symptomName, symptom) {
           }
           if(key === "note" && pain.note) {
             painLabel.push(pain.note)
+            painLabel.shift(painLabels['other'])
           }
         })
         painLabel = painLabel.join(', ')
-- 
GitLab