checks whether reminder date is already passed
This commit is contained in:
@@ -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
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user