Skip to content

Commit

Permalink
fix: perform data error actions before forgetting them (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
boringcactus authored Nov 12, 2024
1 parent 49c744d commit 3c80f2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iosApp/iosApp/ComponentViews/ErrorBanner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ struct ErrorBanner: View {
.refreshable(
label: NSLocalizedString("Reload data", comment: "Refresh button label")
) {
errorBannerVM.clearState()
state.action()
errorBannerVM.clearState()
}
.frame(minHeight: minHeight)
case let .stalePredictions(state):
Expand All @@ -62,8 +62,8 @@ struct ErrorBanner: View {
comment: "Refresh button label for reloading predictions"
)
) {
errorBannerVM.clearState()
state.action()
errorBannerVM.clearState()
}
.frame(minHeight: minHeight)
}
Expand Down

0 comments on commit 3c80f2e

Please sign in to comment.