Skip to content

Commit 027d435

Browse files
committed
fix
1 parent 7157570 commit 027d435

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/containers/App/Content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ function ContentWrapper(props: ContentWrapperProps) {
295295

296296
return (
297297
<Switch>
298-
{!authUnavailable && (
298+
{!authUnavailable && !metaAuthUnavailable && (
299299
<Route path={routes.auth}>
300300
<Authentication closable />
301301
</Route>

src/utils/hooks/useMetaAuth.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ import {
66
useMetaWhoAmIAvailable,
77
} from '../../store/reducers/capabilities/hooks';
88

9-
function useMetaAuthState(path = '') {
9+
function useMetaAuthState(path?: string) {
1010
const location = useLocation();
11-
const isClustersPage = checkIsClustersPage(location.pathname) || checkIsClustersPage(path);
11+
const isClustersPage = path
12+
? checkIsClustersPage(path)
13+
: checkIsClustersPage(location.pathname);
1214
const metaLoginAvailable = useMetaLoginAvailable();
1315
const metaWhoAmIAvailable = useMetaWhoAmIAvailable();
1416

0 commit comments

Comments
 (0)