From 9dd637b5a71a92d9f8c51c175402c15717ba250d Mon Sep 17 00:00:00 2001 From: Sanskar Atrey Date: Wed, 4 Sep 2024 13:04:50 +0530 Subject: [PATCH] refactor: card scheme filtering logic update --- src/CardSchemeComponent.res | 29 +++++++++++++++++++++++------ src/CardUtils.res | 8 +++++++- src/Payment.res | 3 +-- 3 files changed, 31 insertions(+), 9 deletions(-) diff --git a/src/CardSchemeComponent.res b/src/CardSchemeComponent.res index 8bf13dc96..521ce1da4 100644 --- a/src/CardSchemeComponent.res +++ b/src/CardSchemeComponent.res @@ -1,6 +1,6 @@ module CoBadgeCardSchemeDropDown = { @react.component - let make = (~cardNumber, ~setCardBrand) => { + let make = (~eligibleCardSchemes, ~setCardBrand) => {