Skip to content

Commit

Permalink
fix: change testLive mode to option type
Browse files Browse the repository at this point in the history
  • Loading branch information
JeevaRamu0104 committed Nov 30, 2023
1 parent 4559293 commit e27008a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/screens/HyperSwitch/Connectors/ConnectorList.res
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ module NewProcessorCards = {
->LogicUtils.safeParse
->FeatureFlagUtils.featureFlagType

let connectorsAvailableForIntegration = featureFlagDetails.testLiveMode
? ConnectorUtils.connectorListForLive
: isPayoutFlow
? ConnectorUtils.payoutConnectorList
: ConnectorUtils.connectorList
let connectorsAvailableForIntegration =
featureFlagDetails.testLiveMode->Belt.Option.getWithDefault(false)
? ConnectorUtils.connectorListForLive
: isPayoutFlow
? ConnectorUtils.payoutConnectorList
: ConnectorUtils.connectorList

let unConfiguredConnectors =
connectorsAvailableForIntegration->Js.Array2.filter(total =>
Expand Down

0 comments on commit e27008a

Please sign in to comment.