checks whether reminder date is already passed

This commit is contained in:
tina
2018-09-28 13:45:55 +02:00
parent 7f680296d3
commit 107688ac36
+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
}) })
} }
}
} }