diff --git a/sdk/src/main/java/co/omise/android/ui/CreditCardActivity.kt b/sdk/src/main/java/co/omise/android/ui/CreditCardActivity.kt index 74554aa19..e13897987 100644 --- a/sdk/src/main/java/co/omise/android/ui/CreditCardActivity.kt +++ b/sdk/src/main/java/co/omise/android/ui/CreditCardActivity.kt @@ -276,7 +276,7 @@ class CreditCardActivity : OmiseActivity() { private fun updateSubmitButton() { val isFormValid = editTexts.filterKeys { - if (!isBillingAddressRequired()) !billingAddressEditTexts.contains(it) + if (!isBillingAddressRequired()) !billingAddressEditTexts.containsKey(it) else true }.map { (editText, _) -> editText.isValid }.reduce { acc, b -> acc && b } submitButton.isEnabled = isFormValid