diff --git a/src/hooks/AuthHooks.res b/src/hooks/AuthHooks.res index 0f558c915..abdf6a712 100644 --- a/src/hooks/AuthHooks.res +++ b/src/hooks/AuthHooks.res @@ -23,7 +23,6 @@ let getHeaders = (~uri, ~headers, ~isFromFormData, ()) => { } else if isFromFormData { let headerObj = { "Authorization": `Bearer ${hyperSwitchToken->Belt.Option.getWithDefault("")}`, - "api-key": headers->Dict.get("api-key")->Belt.Option.getWithDefault("hyperswitch"), } Fetch.HeadersInit.make(headerObj) } else { diff --git a/src/screens/HyperSwitch/Routing/DefaultRouting.res b/src/screens/HyperSwitch/Routing/DefaultRouting.res index 045809f0c..23dbd9e14 100644 --- a/src/screens/HyperSwitch/Routing/DefaultRouting.res +++ b/src/screens/HyperSwitch/Routing/DefaultRouting.res @@ -76,6 +76,7 @@ let make = () => { ~methodType=Post, (), )}/profile/${profile}` + ( await updateDetails(defaultFallbackUpdateUrl, defaultPayload->Js.Json.array, Post, ()) )->ignore