diff --git a/ui/src/features/auth/token-renew.tsx b/ui/src/features/auth/token-renew.tsx index 807cf05c6..c6fdc822b 100644 --- a/ui/src/features/auth/token-renew.tsx +++ b/ui/src/features/auth/token-renew.tsx @@ -67,8 +67,6 @@ export const TokenRenew = () => { } if (!as || !client) { - navigate(paths.login); - return; } @@ -82,6 +80,7 @@ export const TokenRenew = () => { placement: 'bottomRight' }); logout(); + navigate(paths.login); return; }