Skip to content

Commit

Permalink
Hide CBC dropdown if in error state (#7516)
Browse files Browse the repository at this point in the history
  • Loading branch information
tillh-stripe authored Oct 27, 2023
1 parent f915f75 commit 1eca0e6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ private fun CardBrand(
}
}

val showDropdown = remember(possibleBrands, shouldShowCvc) {
isCbcEligible && possibleBrands.size > 1 && !shouldShowCvc
val showDropdown = remember(possibleBrands, shouldShowCvc, shouldShowErrorIcon) {
isCbcEligible && possibleBrands.size > 1 && !shouldShowCvc && !shouldShowErrorIcon
}

Box(modifier) {
Expand Down

0 comments on commit 1eca0e6

Please sign in to comment.