diff --git a/src/app/CoreStoreProvider.tsx b/src/app/CoreStoreProvider.tsx index edfd28c3..253e9bc9 100644 --- a/src/app/CoreStoreProvider.tsx +++ b/src/app/CoreStoreProvider.tsx @@ -105,6 +105,9 @@ const CoreStoreProvider: React.FC<{ children: React.ReactNode }> = observer(({ c error?.code === 'InvalidToken' ) { await oAuthLogout(); + if (sessionStorage.getItem('query_param_currency')) { + sessionStorage.removeItem('query_param_currency'); + } } if (msg_type === 'balance' && data && !error) { diff --git a/src/hooks/auth/useOauth2.ts b/src/hooks/auth/useOauth2.ts index 153f0b85..bdc8c516 100644 --- a/src/hooks/auth/useOauth2.ts +++ b/src/hooks/auth/useOauth2.ts @@ -42,6 +42,9 @@ export const useOauth2 = ({ const logoutHandler = async () => { client?.setIsLoggingOut(true); await oAuthLogout(); + if (sessionStorage.getItem('query_param_currency')) { + sessionStorage.removeItem('query_param_currency'); + } }; return { isOAuth2Enabled, oAuthLogout: logoutHandler };