From 491271f20334455a497c6c5267548c9969f0236d Mon Sep 17 00:00:00 2001 From: Gitanjli <96485413+gitanjli525@users.noreply.github.com> Date: Thu, 28 Nov 2024 14:28:17 +0530 Subject: [PATCH] chore: minor modification for enhancement and bugfix (#1815) Co-authored-by: Gitanjli Chopra --- src/screens/SDKPayment/SDKPage.res | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/screens/SDKPayment/SDKPage.res b/src/screens/SDKPayment/SDKPage.res index 5d2ae77e3..3b5cf65ad 100644 --- a/src/screens/SDKPayment/SDKPage.res +++ b/src/screens/SDKPayment/SDKPage.res @@ -7,6 +7,8 @@ module SDKConfiguarationFields = { let businessProfiles = Recoil.useRecoilValueFromAtom(HyperswitchAtom.businessProfilesAtom) let disableSelectionForProfile = businessProfiles->HomeUtils.isDefaultBusinessProfile let connectorList = HyperswitchAtom.connectorListAtom->Recoil.useRecoilValueFromAtom + let paymentConnectorList = + connectorList->RoutingUtils.filterConnectorList(~retainInList=PaymentConnector) let dropDownOptions = HomeUtils.countries->Array.map((item): SelectBox.dropdownOption => { { label: `${item.countryName} (${item.currency})`, @@ -66,7 +68,7 @@ module SDKConfiguarationFields = { LogicUtils.isEmptyString || - connectorList->Array.length <= 0} + paymentConnectorList->Array.length <= 0} customSumbitButtonStyle="!mt-5" /> @@ -87,7 +89,7 @@ let make = () => { ) let connectorList = HyperswitchAtom.connectorListAtom->Recoil.useRecoilValueFromAtom - let filterConnectorList = + let paymentConnectorList = connectorList->RoutingUtils.filterConnectorList(~retainInList=PaymentConnector) React.useEffect(() => { @@ -157,7 +159,7 @@ let make = () => { initialValues /> - } else if filterConnectorList->Array.length <= 0 { + } else if paymentConnectorList->Array.length <= 0 {