From 35e6c2d6e33a7875a036271a97e10a06ed6cf642 Mon Sep 17 00:00:00 2001 From: Rupato Braganza Date: Fri, 7 Mar 2025 15:49:32 +0800 Subject: [PATCH] fix: first login --- src/components/layout/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/layout/index.tsx b/src/components/layout/index.tsx index 78e4a50f..d6d8e2f8 100644 --- a/src/components/layout/index.tsx +++ b/src/components/layout/index.tsx @@ -88,9 +88,9 @@ const Layout = () => { (isLoggedInCookie && !isClientAccountsPopulated && isOAuth2Enabled && !isEndpointPage && !isCallbackPage) || !clientHasCurrency ) { + sessionStorage.setItem('query_param_currency', currency); const query_param_currency = sessionStorage.getItem('query_param_currency') || currency || 'USD'; console.log('query_param_currency', query_param_currency); - sessionStorage.setItem('query_param_currency', currency); requestOidcAuthentication({ redirectCallbackUri: `${window.location.origin}/callback`, ...(query_param_currency