Set isCycleStart when saving symptom
This commit is contained in:
+3
-3
@@ -150,14 +150,14 @@ export default function config(opts) {
|
||||
}
|
||||
}
|
||||
|
||||
function getMensesDaysAfter(bleedingDay) {
|
||||
function getMensesDaysAfter(cycleDay) {
|
||||
const bleedingDays = bleedingDaysSortedByDate.filter(d => {
|
||||
return !d.bleeding.exclude
|
||||
})
|
||||
const startIndex = bleedingDays.findIndex(day => {
|
||||
return day.date === bleedingDay.date
|
||||
return day.date === cycleDay.date
|
||||
})
|
||||
return recurse(bleedingDay, startIndex, [])
|
||||
return recurse(cycleDay, startIndex, [])
|
||||
|
||||
function recurse(day, i, mensesDays) {
|
||||
if (i === 0) return mensesDays
|
||||
|
||||
Reference in New Issue
Block a user