Skip to content

Commit

Permalink
Merge pull request #1319 from Adyen/fix/dual-brand-v4
Browse files Browse the repository at this point in the history
Fix dual branded flow check (v4)
  • Loading branch information
ozgur00 authored Aug 29, 2023
2 parents b79a349 + 9c7f047 commit e6fed4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ class CardComponent private constructor(

fun isDualBrandedFlow(cardOutputData: CardOutputData): Boolean {
val reliableDetectedCards = cardOutputData.detectedCardTypes.filter { it.isReliable }
return reliableDetectedCards.size > 1 && reliableDetectedCards.any { it.isSelected }
return reliableDetectedCards.size > 1
}

private fun isInstallmentsRequired(cardOutputData: CardOutputData): Boolean {
Expand Down

0 comments on commit e6fed4b

Please sign in to comment.