Skip to content

Commit

Permalink
Properly reset status
Browse files Browse the repository at this point in the history
  • Loading branch information
afterxleep committed Apr 15, 2024
1 parent 3b653ab commit 4399836
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ final class SubscriptionPagesUseSubscriptionFeature: Subfeature, ObservableObjec
purchaseTransactionJWS = transactionJWS

case .failure(let error):

setTransactionStatus(.idle)
switch error {
case .cancelledByUser:
setTransactionError(.cancelledByUser)
Expand All @@ -241,7 +241,6 @@ final class SubscriptionPagesUseSubscriptionFeature: Subfeature, ObservableObjec
setTransactionError(.purchaseFailed)
}
originalMessage = original
setTransactionStatus(.idle)
return nil
}

Expand Down

0 comments on commit 4399836

Please sign in to comment.