Skip to content

Commit

Permalink
fix: resolved comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Lokesh Jain committed Dec 12, 2023
1 parent 2102ccc commit 55f40bc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions config/FeatureFlag.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
])
Expand All @@ -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),
])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
])
Expand All @@ -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),
])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ let getSidebarOptionsForIntegrateYourApp: (

open LogicUtils
let enumValue = enumDetails->safeParse->getTypedValueFromDict
Js.log2("updated lokii", enumValue)

let migrateFromStripeSidebar: array<HSSelfServeSidebar.sidebarOption> = [
{
title: "Choose integration method",
Expand Down
1 change: 0 additions & 1 deletion src/screens/HyperSwitch/Hooks/EnumVariantHook.res
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ let useUpdateEnumInRecoil = () => {
})

let updatedRecoilValueDict = DictionaryUtils.mergeDicts(enumDictsArray)
Js.log2("lokiiiiii", enumDictsArray)
setEnumVariantValues(._ => updatedRecoilValueDict->Js.Json.object_->Js.Json.stringify)
updatedRecoilValueDict
}
Expand Down

0 comments on commit 55f40bc

Please sign in to comment.