Skip to content

Commit

Permalink
fix: reverted unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Riddhiagrawal001 committed Dec 18, 2023
1 parent fa560db commit 282c61c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
6 changes: 3 additions & 3 deletions config/FeatureFlag.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"test_live_toggle": false,
"is_live_mode": false,
"magic_link": true,
"magic_link": false,
"production_access": false,
"quick_start": true,
"quick_start": false,
"switch_merchant": false,
"audit_trail": false,
"system_metrics": false,
"sample_data": true,
"sample_data": false,
"frm": false,
"payout": false,
"recon": false,
Expand Down
29 changes: 14 additions & 15 deletions src/entryPoints/hyperswitch/HyperSwitchApp.res
Original file line number Diff line number Diff line change
Expand Up @@ -75,22 +75,21 @@ let make = () => {
sessionExpired := false

let getAgreementEnum = async () => {
// open LogicUtils
// try {
// let url = #ProductionAgreement->ProdOnboardingUtils.getProdOnboardingUrl
// let response = await fetchDetails(url)
open LogicUtils
try {
let url = #ProductionAgreement->ProdOnboardingUtils.getProdOnboardingUrl
let response = await fetchDetails(url)

// if response->getDictFromJsonObject->getBool("ProductionAgreement", false) {
// setDashboardPageState(_ => #PROD_ONBOARDING)
// } else {
// setDashboardPageState(_ => #AGREEMENT_SIGNATURE)
// }
// } catch {
// | _ =>
// setDashboardPageState(_ => #HOME)
// setScreenState(_ => PageLoaderWrapper.Success)
// }
setDashboardPageState(_ => #PROD_ONBOARDING)
if response->getDictFromJsonObject->getBool("ProductionAgreement", false) {
setDashboardPageState(_ => #PROD_ONBOARDING)
} else {
setDashboardPageState(_ => #AGREEMENT_SIGNATURE)
}
} catch {
| _ =>
setDashboardPageState(_ => #HOME)
setScreenState(_ => PageLoaderWrapper.Success)
}
}

let fetchInitialEnums = async () => {
Expand Down

0 comments on commit 282c61c

Please sign in to comment.