Skip to content

Commit

Permalink
Fix double tap on pinned tab for not loaded schedule
Browse files Browse the repository at this point in the history
Fixes #174
  • Loading branch information
asiliuk committed Mar 9, 2024
1 parent 761ee16 commit 2bfe58f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ extension ScheduleFeature.State {
}

public mutating func reset() {
guard schedule.is(\.loaded) else { return }
schedule.modify(\.loaded) { [scheduleType] in
switch scheduleType {
case .compact: $0.compact.reset()
Expand Down

0 comments on commit 2bfe58f

Please sign in to comment.