From ac268cda19cab6b3f8955ae1239d0779641f99d0 Mon Sep 17 00:00:00 2001 From: Riddhiagrawal001 <50551695+Riddhiagrawal001@users.noreply.github.com> Date: Thu, 30 Nov 2023 13:28:32 +0530 Subject: [PATCH] Fix: ConnectorList for live updated (#35) Co-authored-by: Riddhi Agrawal --- .github/workflows/pr-title-spell-check.yml | 4 ++-- .github/workflows/release-new-version.yml | 1 - src/screens/HyperSwitch/Connectors/ConnectorList.res | 6 +++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-title-spell-check.yml b/.github/workflows/pr-title-spell-check.yml index 03b5a8758..62ea93590 100644 --- a/.github/workflows/pr-title-spell-check.yml +++ b/.github/workflows/pr-title-spell-check.yml @@ -17,8 +17,8 @@ jobs: - name: Store PR title in a file shell: bash - env: - TITLE: ${{ github.event.pull_request.title }} + env: + TITLE: ${{ github.event.pull_request.title }} run: echo $TITLE > pr_title.txt - name: Spell check diff --git a/.github/workflows/release-new-version.yml b/.github/workflows/release-new-version.yml index d71709dcd..01ca10b53 100644 --- a/.github/workflows/release-new-version.yml +++ b/.github/workflows/release-new-version.yml @@ -10,7 +10,6 @@ name: Release a new hyperswitch version # group: ${{ github.workflow }}-${{ github.ref }} # cancel-in-progress: true - on: pull_request_target: types: diff --git a/src/screens/HyperSwitch/Connectors/ConnectorList.res b/src/screens/HyperSwitch/Connectors/ConnectorList.res index cd11ab29c..150f1bd7c 100644 --- a/src/screens/HyperSwitch/Connectors/ConnectorList.res +++ b/src/screens/HyperSwitch/Connectors/ConnectorList.res @@ -10,9 +10,13 @@ module NewProcessorCards = { ->Recoil.useRecoilValueFromAtom ->LogicUtils.safeParse ->FeatureFlagUtils.featureFlagType - let connectorsAvailableForIntegration = isPayoutFlow + + let connectorsAvailableForIntegration = featureFlagDetails.testLiveMode + ? ConnectorUtils.connectorListForLive + : isPayoutFlow ? ConnectorUtils.payoutConnectorList : ConnectorUtils.connectorList + let unConfiguredConnectors = connectorsAvailableForIntegration->Js.Array2.filter(total => configuredConnectors->Js.Array2.find(item => item === total)->Belt.Option.isNone