Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Properly set state when user cancelled the purchase #3725

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading