Skip to content

Commit

Permalink
Hide CBC dropdown in error state
Browse files Browse the repository at this point in the history
  • Loading branch information
tillh-stripe committed Oct 25, 2023
1 parent 81c7755 commit 5162702
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,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 5162702

Please sign in to comment.