Skip to content

Commit

Permalink
Paywalls: prevent multiple concurrent purchases (#2991)
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto committed Aug 31, 2023
1 parent d3cd5ba commit 7af6ad1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RevenueCatUI/Views/PurchaseButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ struct PurchaseButton: View {

private var button: some View {
AsyncButton {
guard !self.purchaseHandler.actionInProgress else { return }

let cancelled = try await self.purchaseHandler.purchase(package: self.package,
with: self.mode).userCancelled

Expand Down

0 comments on commit 7af6ad1

Please sign in to comment.