Skip to content

Commit

Permalink
fix: dismiss alert using binding instead of environment dismiss (#4653)
Browse files Browse the repository at this point in the history
  • Loading branch information
facumenzella authored Jan 14, 2025
1 parent 6687bea commit 0b5ad99
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ struct RestorePurchasesAlert: ViewModifier {

@State
private var alertType: AlertType = .restorePurchases
@Environment(\.dismiss)
private var dismiss
@Environment(\.localization)
private var localization
@Environment(\.supportInformation)
Expand Down Expand Up @@ -164,7 +162,7 @@ struct RestorePurchasesAlert: ViewModifier {

private func dismissAlert() {
self.alertType = .restorePurchases
dismiss()
self.isPresented = false
}
}

Expand Down

0 comments on commit 0b5ad99

Please sign in to comment.