Skip to content

Commit

Permalink
fix minor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vishal2376 committed Mar 31, 2024
1 parent 228e35e commit 4f19045
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ fun ThisWeekTaskScreen(
val endOfWeek = today.with(TemporalAdjusters.nextOrSame(DayOfWeek.SUNDAY))

val thisWeekTasks = tasks.filter { task ->
!task.isCompleted && (if (task.isRepeated && task.repeatWeekdays.contains(today.dayOfWeek.value.toString())) {
!task.isCompleted && (if (task.isRepeated && task.getRepeatWeekList().contains(dayOfWeek)) {
true
} else {
task.date in startOfWeek..endOfWeek
Expand Down

0 comments on commit 4f19045

Please sign in to comment.