From bcc901c061c00ac19af64ef9052f816f24b1afaa Mon Sep 17 00:00:00 2001
From: emelko <ml.kochsiek@mailbox.org>
Date: Mon, 23 Jul 2018 18:15:57 +0200
Subject: [PATCH] Fixing bleeding and temperature button label on cycle day
 overview

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

diff --git a/components/cycle-day/cycle-day-overview.js b/components/cycle-day/cycle-day-overview.js
index 839de297..809a1edf 100644
--- a/components/cycle-day/cycle-day-overview.js
+++ b/components/cycle-day/cycle-day-overview.js
@@ -47,8 +47,8 @@ export default class DayView extends Component {
     let bleedingLabel
     if (this.cycleDay.bleeding) {
       const bleeding = this.cycleDay.bleeding
-      if (typeof bleeding === 'number') {
-        bleedingLabel = `${bleedingLabels[bleeding]}`
+      if (typeof bleeding.value === 'number') {
+        bleedingLabel = `${bleedingLabels[bleeding.value]}`
         if (bleeding.exclude) bleedingLabel = "( " + bleedingLabel + " )"
       }
     } else {
@@ -58,8 +58,8 @@ export default class DayView extends Component {
     let temperatureLabel
     if (this.cycleDay.temperature) {
       const temperature = this.cycleDay.temperature
-      if (typeof temperature === 'number') {
-        temperatureLabel = `${temperature} °C - ${temperature.time}`
+      if (typeof temperature.value === 'number') {
+        temperatureLabel = `${temperature.value} °C - ${temperature.time}`
         if (temperature.exclude) {
           temperatureLabel = "( " + temperatureLabel + " )"
         }
-- 
GitLab