Skip to content

Commit

Permalink
Fix stuck spinner in PayPalWebView.
Browse files Browse the repository at this point in the history
  • Loading branch information
sshropshire committed Feb 3, 2025
1 parent b7a46f3 commit 32fae3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ class PayPalWebViewModel @Inject constructor(
}

null, PayPalWebCheckoutFinishStartResult.NoResult -> {
// do nothing
// no result; re-enable PayPal button so user can retry
payPalWebCheckoutState = ActionState.Idle
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ class PayPalWebVaultViewModel @Inject constructor(
vaultPayPalState = ActionState.Failure(Exception("USER CANCELED"))

null, PayPalWebCheckoutFinishVaultResult.NoResult -> {
// no result; re-enable PayPal button so user can retry
vaultPayPalState = ActionState.Idle
// do nothing
}
}
Expand Down

0 comments on commit 32fae3c

Please sign in to comment.