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:
tina
2018-09-28 13:35:18 +00:00
+3
View File
@@ -64,6 +64,8 @@ function setupPeriodReminder() {
.hours(6) .hours(6)
.minutes(0) .minutes(0)
.seconds(0) .seconds(0)
if (reminderDate.isAfter()) {
// period is likely to start in 3 to 3 + (length of prediction - 1) days // period is likely to start in 3 to 3 + (length of prediction - 1) days
const daysToEndOfPrediction = bleedingPrediction[0].length + 2 const daysToEndOfPrediction = bleedingPrediction[0].length + 2
@@ -74,4 +76,5 @@ function setupPeriodReminder() {
vibrate: false vibrate: false
}) })
} }
}
} }