Respect macCycleLength in getCyclesBefore

This commit is contained in:
Julia Friesel committed 2018-12-21 15:30:48 +01:00
1 parent 9bd0eedfaf
commit 9fd0105506
2 files changed
+126

No files matched your search

+2
View File
@@ -62,6 +62,8 @@ export default function config(opts) {
return cycleStartsSortedByDate
.slice(startFromHere)
.map(getCycleForCycleStartDay)
// filter the ones exceeding macCycleLength
.filter(cycle => cycle)
}
function getCycleForCycleStartDay(startDay) {