Skip to content

Commit

Permalink
Update how we check whether a card brand has been changed
Browse files Browse the repository at this point in the history
  • Loading branch information
amk-stripe committed Feb 20, 2025
1 parent 16d17ac commit 4bdc270
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ internal class DefaultUpdatePaymentMethodInteractor(

private suspend fun maybeUpdateCardBrand(): Result<PaymentMethod>? {
val newCardBrand = cardBrandChoice.value.brand
return if (newCardBrand != getInitialCardBrandChoice().brand) {
return if (cardBrandHasBeenChanged.value) {
updateCardBrandExecutor(
displayableSavedPaymentMethod.paymentMethod,
newCardBrand
Expand Down

0 comments on commit 4bdc270

Please sign in to comment.