Skip to content

Commit

Permalink
Merge pull request #107 from Trendyol/ANDCHECK-1930/walletCardInputVi…
Browse files Browse the repository at this point in the history
…ewErrorFix

ANDCHECK-1930/walletCardInputViewErrorFix
  • Loading branch information
edaersu authored Nov 1, 2022
2 parents 4e46796 + 5d2b4b3 commit a47539b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/ComponentVersions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ object ComponentVersions {
const val imageSliderVersion = "1.0.8"
const val phoneNumberVersion = "1.0.2"
const val dialogsVersion = "1.4.0"
const val cardInputViewVersion = "1.2.3"
const val cardInputViewVersion = "1.2.4"
const val quantityPickerViewVersion = "1.2.8"
const val timelineViewVersion = "1.0.1"
const val touchDelegatorVersion = "1.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class CardInputView : ConstraintLayout {

private fun setCardNumberValidity(isValid: Boolean) {
val viewState = binding.viewState
binding.viewState = viewState?.copy(cardNumberValid = isValid)
binding.viewState = viewState?.copy(cardNumberValid = isValid, shouldShowErrors = !isValid)
cardNumberInputErrorListener(cardNumberValid = isValid)
}

Expand Down

0 comments on commit a47539b

Please sign in to comment.