From a59aa86dbfbac8b76c7aa0926dc38f544a0c2cde Mon Sep 17 00:00:00 2001
From: Julia Friesel <julia.friesel@gmail.com>
Date: Thu, 16 Aug 2018 21:45:17 +0200
Subject: [PATCH] Fix key

---
 components/cycle-day/cycle-day-overview.js | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/components/cycle-day/cycle-day-overview.js b/components/cycle-day/cycle-day-overview.js
index 31e54d50..35786826 100644
--- a/components/cycle-day/cycle-day-overview.js
+++ b/components/cycle-day/cycle-day-overview.js
@@ -190,12 +190,16 @@ class SymptomBox extends Component {
 class FillerBoxes extends Component {
   render() {
     const n = Dimensions.get('window').width / styles.symptomBox.minHeight
-    return Array(Math.ceil(n)).fill(
-      <View
-        width={styles.symptomBox.minHeight}
-        height={0}
-        key={Math.random().toString()}
-      />
-    )
+    const fillerBoxes = []
+    for (let i = 0; i < Math.ceil(n); i++) {
+      fillerBoxes.push(
+        <View
+          width={styles.symptomBox.minHeight}
+          height={0}
+          key={i.toString()}
+        />
+      )
+    }
+    return fillerBoxes
   }
 }
\ No newline at end of file
-- 
GitLab