Skip to content

Commit

Permalink
Don't show remove spinner until the user has confirmed removal (#9743)
Browse files Browse the repository at this point in the history
  • Loading branch information
amk-stripe authored Dec 4, 2024
1 parent 9add392 commit aabba06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ private fun DeletePaymentMethodUi(interactor: UpdatePaymentMethodInteractor) {
title = R.string.stripe_remove.resolvableString,
borderColor = MaterialTheme.colors.error,
idle = status == UpdatePaymentMethodInteractor.Status.Idle,
removing = openDialogValue.value || status == UpdatePaymentMethodInteractor.Status.Removing,
removing = status == UpdatePaymentMethodInteractor.Status.Removing,
onRemove = { openDialogValue.value = true },
testTag = UPDATE_PM_REMOVE_BUTTON_TEST_TAG,
)
Expand Down

0 comments on commit aabba06

Please sign in to comment.