From 55f40bca3f6795e973532ab8813bfeecc6fca6dd Mon Sep 17 00:00:00 2001 From: Lokesh Jain Date: Tue, 12 Dec 2023 12:22:28 +0530 Subject: [PATCH] fix: resolved comments --- config/FeatureFlag.json | 4 ++-- .../Home/QuickStart/IntegrateYourApp/IntegrateFromScratch.res | 4 ++-- .../Home/QuickStart/IntegrateYourApp/MigrateFromStripe.res | 4 ++-- src/screens/HyperSwitch/Home/QuickStart/QuickStartUtils.res | 2 +- src/screens/HyperSwitch/Hooks/EnumVariantHook.res | 1 - 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/config/FeatureFlag.json b/config/FeatureFlag.json index 2accf7baa..9d6e08029 100644 --- a/config/FeatureFlag.json +++ b/config/FeatureFlag.json @@ -1,9 +1,9 @@ { "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, diff --git a/src/screens/HyperSwitch/Home/QuickStart/IntegrateYourApp/IntegrateFromScratch.res b/src/screens/HyperSwitch/Home/QuickStart/IntegrateYourApp/IntegrateFromScratch.res index 3ef178f16..073c4f22d 100644 --- a/src/screens/HyperSwitch/Home/QuickStart/IntegrateYourApp/IntegrateFromScratch.res +++ b/src/screens/HyperSwitch/Home/QuickStart/IntegrateYourApp/IntegrateFromScratch.res @@ -31,7 +31,7 @@ let make = ( if currentStep === DownloadTestAPIKey { setQuickStartPageState(_ => IntegrateApp(CHOOSE_INTEGRATION)) } else { - let _res = updateEnumInRecoil([ + let _ = updateEnumInRecoil([ (String("pending"), currentStep->getPolyMorphicVariantOfIntegrationSubStep), (String("ongoing"), prevStep->getPolyMorphicVariantOfIntegrationSubStep), ]) @@ -50,7 +50,7 @@ let make = ( markAsDone()->ignore } else { let nextStep = getNavigationStepForStandardIntegration(~currentStep, ~forward=true, ()) - let _res = updateEnumInRecoil([ + let _ = updateEnumInRecoil([ (String("completed"), currentStep->getPolyMorphicVariantOfIntegrationSubStep), (String("ongoing"), nextStep->getPolyMorphicVariantOfIntegrationSubStep), ]) diff --git a/src/screens/HyperSwitch/Home/QuickStart/IntegrateYourApp/MigrateFromStripe.res b/src/screens/HyperSwitch/Home/QuickStart/IntegrateYourApp/MigrateFromStripe.res index 249ff9046..562726bee 100644 --- a/src/screens/HyperSwitch/Home/QuickStart/IntegrateYourApp/MigrateFromStripe.res +++ b/src/screens/HyperSwitch/Home/QuickStart/IntegrateYourApp/MigrateFromStripe.res @@ -31,7 +31,7 @@ let make = ( if currentStep === DownloadAPIKey { setQuickStartPageState(_ => IntegrateApp(CHOOSE_INTEGRATION)) } else { - let _res = updateEnumInRecoil([ + let _ = updateEnumInRecoil([ (String("pending"), currentStep->getPolyMorphicVariantOfMigrateFromStripe), (String("ongoing"), prevStep->getPolyMorphicVariantOfMigrateFromStripe), ]) @@ -50,7 +50,7 @@ let make = ( markAsDone()->ignore } else { let nextStep = getNavigationStepForMigrateFromStripe(~currentStep, ~forward=true, ()) - let _res = updateEnumInRecoil([ + let _ = updateEnumInRecoil([ (String("completed"), currentStep->getPolyMorphicVariantOfMigrateFromStripe), (String("ongoing"), nextStep->getPolyMorphicVariantOfMigrateFromStripe), ]) diff --git a/src/screens/HyperSwitch/Home/QuickStart/QuickStartUtils.res b/src/screens/HyperSwitch/Home/QuickStart/QuickStartUtils.res index 9d6bf1ba4..7de1e90e6 100644 --- a/src/screens/HyperSwitch/Home/QuickStart/QuickStartUtils.res +++ b/src/screens/HyperSwitch/Home/QuickStart/QuickStartUtils.res @@ -279,7 +279,7 @@ let getSidebarOptionsForIntegrateYourApp: ( open LogicUtils let enumValue = enumDetails->safeParse->getTypedValueFromDict - Js.log2("updated lokii", enumValue) + let migrateFromStripeSidebar: array = [ { title: "Choose integration method", diff --git a/src/screens/HyperSwitch/Hooks/EnumVariantHook.res b/src/screens/HyperSwitch/Hooks/EnumVariantHook.res index 7015eee45..0a7ae6a37 100644 --- a/src/screens/HyperSwitch/Hooks/EnumVariantHook.res +++ b/src/screens/HyperSwitch/Hooks/EnumVariantHook.res @@ -57,7 +57,6 @@ let useUpdateEnumInRecoil = () => { }) let updatedRecoilValueDict = DictionaryUtils.mergeDicts(enumDictsArray) - Js.log2("lokiiiiii", enumDictsArray) setEnumVariantValues(._ => updatedRecoilValueDict->Js.Json.object_->Js.Json.stringify) updatedRecoilValueDict }