Skip to content

Commit

Permalink
Properly set state when user cancelled the purchase
Browse files Browse the repository at this point in the history
  • Loading branch information
miasma13 committed Dec 12, 2024
1 parent da81425 commit 6eacced
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ final class SubscriptionFlowViewModel: ObservableObject {
isBackendError = true
state.transactionError = .hasActiveSubscription
case .cancelledByUser:
state.transactionError = nil
state.transactionError = .cancelledByUser
case .accountCreationFailed:
DailyPixel.fireDailyAndCount(pixel: .privacyProPurchaseFailureAccountNotCreated,
pixelNameSuffixes: DailyPixel.Constant.legacyDailyPixelSuffixes)
Expand Down

0 comments on commit 6eacced

Please sign in to comment.