Skip to content

Commit

Permalink
fix: Fix reminder rescheduling when restoring archived goal (#126)
Browse files Browse the repository at this point in the history
Signed-off-by: starry-shivam <[email protected]>
  • Loading branch information
starry-shivam authored May 9, 2024
1 parent 985ef89 commit 2b4f983
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ class ArchiveViewModel @Inject constructor(
val updatedGoal = goal.copy(archived = false)
updatedGoal.goalId = goal.goalId
goalDao.updateGoal(updatedGoal)
// Schedule the reminder if it was set for the goal
if (reminderManager.isReminderSet(goal.goalId)) {
// Schedule the reminder if it was enabled for the goal.
if (goal.reminder) {
reminderManager.scheduleReminder(goal.goalId)
}
}
Expand Down

0 comments on commit 2b4f983

Please sign in to comment.