forked from agzam/vyatsu-schedule
refactor: clenup
This commit is contained in:
@@ -81,7 +81,7 @@ class ScheduleViewModel(
|
||||
|
||||
val dayDate = when {
|
||||
weekDays.any { it.date == current.dayDate } -> current.dayDate
|
||||
weekDays.any { it.date == todayDate && todayDate != null } -> todayDate
|
||||
weekDays.any { it.date == todayDate } -> todayDate
|
||||
else -> weekDays.firstOrNull()?.date
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user