Skip to content

Commit 1c27abc

Browse files
authored
Merge pull request #303 from rupato-deriv/fix--oidc-first-login
fix: currency on first login
2 parents d3ef047 + badbac7 commit 1c27abc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/layout/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ const Layout = () => {
7777
!clientHasCurrency
7878
) {
7979
const query_param_currency = sessionStorage.getItem('query_param_currency') || currency || 'USD';
80+
console.log('query_param_currency', query_param_currency);
81+
sessionStorage.setItem('query_param_currency', currency);
8082
requestOidcAuthentication({
8183
redirectCallbackUri: `${window.location.origin}/callback`,
8284
...(query_param_currency

0 commit comments

Comments
 (0)