Skip to content

Commit

Permalink
chore: code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarnaikjuspay committed Dec 8, 2023
1 parent cefab7e commit f2caad8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions config/FeatureFlag.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@
"business_profile": false,
"generate_report": false,
"forgot_password": false,
"oss_build": true,
"connector_success_rate": true
"oss_build": true
}
2 changes: 0 additions & 2 deletions src/entryPoints/hyperswitch/FeatureFlagUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ type featureFlag = {
verifyConnector: bool,
forgetPassword: bool,
ossBuild: bool,
connector_success_rate: bool,
}

let featureFlagType = (featureFlags: Js.Json.t) => {
Expand Down Expand Up @@ -50,7 +49,6 @@ let featureFlagType = (featureFlags: Js.Json.t) => {
verifyConnector: dict->getBool("verify_connector", false),
forgetPassword: dict->getBool("forgot_password", false),
ossBuild: dict->getBool("oss_build", false),
connector_success_rate: dict->getBool("connector_success_rate", false),
}
typedFeatureFlag
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let make = () => {
let (metrics, setMetrics) = React.useState(_ => [])
let (dimensions, setDimensions) = React.useState(_ => [])
let fetchDetails = useGetMethod()
let {connector_success_rate} =
let {isLiveMode} =
HyperswitchAtom.featureFlagAtom
->Recoil.useRecoilValueFromAtom
->LogicUtils.safeParse
Expand Down Expand Up @@ -78,7 +78,7 @@ let make = () => {
tabKeys
tabValues
options
singleStatEntity={getSingleStatEntity(metrics, connector_success_rate)}
singleStatEntity={getSingleStatEntity(metrics, !isLiveMode)}
getTable={getPaymentTable}
colMapper
tableEntity={paymentTableEntity}
Expand Down

0 comments on commit f2caad8

Please sign in to comment.