Merge branch '215-period-reminder-bug' into 'master'
wrongly triggered period reminders (bug) Closes #215 See merge request bloodyhealth/drip!92
This commit is contained in:
@@ -64,6 +64,8 @@ function setupPeriodReminder() {
|
||||
.hours(6)
|
||||
.minutes(0)
|
||||
.seconds(0)
|
||||
|
||||
if (reminderDate.isAfter()) {
|
||||
// period is likely to start in 3 to 3 + (length of prediction - 1) days
|
||||
const daysToEndOfPrediction = bleedingPrediction[0].length + 2
|
||||
|
||||
@@ -75,3 +77,4 @@ function setupPeriodReminder() {
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user