File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments