From 537b8c7647a9437130f8e0112f0f16c6b104920c Mon Sep 17 00:00:00 2001
From: Julia Friesel <julia.friesel@gmail.com>
Date: Thu, 5 Jul 2018 09:51:54 +0200
Subject: [PATCH] For 3 following values, look at mucus days, not cycle days

---
 lib/sympto/mucus.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/sympto/mucus.js b/lib/sympto/mucus.js
index f9c0d821..0931ad6e 100644
--- a/lib/sympto/mucus.js
+++ b/lib/sympto/mucus.js
@@ -4,7 +4,7 @@ export default function (cycleDays) {
   const mucusPeak = mucusDays.find((day, i) => {
     if (day.mucus.value !== bestQuality) return false
 
-    const threeFollowingDays = cycleDays.slice(i + 1, i + 4)
+    const threeFollowingDays = mucusDays.slice(i + 1, i + 4)
     if (threeFollowingDays.length < 3) return false
 
     return threeFollowingDays.every(day => day.mucus.value < bestQuality)
-- 
GitLab