Fix button enable/disable on filling out card params (#2605)

This commit is contained in:
John Woo 2023-05-25 15:33:44 -07:00 committed by GitHub
parent 4e842285b1
commit bf179e409c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -246,7 +246,8 @@ class CustomerSavedPaymentMethodsViewController: UIViewController {
showActionButton = false
}
case .addingNewPaymentMethodAttachToCustomer, .addingNewWithSetupIntent:
self.actionButton.isHidden = false
self.actionButton.setHiddenIfNecessary(false)
actionButtonStatus = addPaymentMethodViewController.paymentOption == nil ? .disabled : .enabled
}
if processingInFlight {