diff --git a/src/context/auth-context.tsx b/src/context/auth-context.tsx index b6d0ef0..20f9be8 100644 --- a/src/context/auth-context.tsx +++ b/src/context/auth-context.tsx @@ -29,7 +29,9 @@ export const AuthDataProvider = ({ children }: AuthDataProviderProps) => { const { mutateAsync: requestLogout } = useLogout(); - const accountsList: Record = JSON.parse(localStorage.getItem('client.accounts') ?? '{}'); + const accountsList: Record = JSON.parse( + localStorage.getItem('client.accounts') ?? localStorage.getItem('accountsList') ?? '{}' + ); const isAuthorized = useMemo( () => isSuccess && (!!activeLoginid || !!Object.keys(accountsList).length),