Skip to content

Commit 623559e

Browse files
committed
tweak auth context
1 parent 841e1e9 commit 623559e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nextapp/shared/services/auth/auth-context.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const AuthProvider: React.FC<AuthProviderProps> = ({ children }) => {
3636

3737
const identityParam = providerPage ? 'identity=provider&' : '';
3838

39-
if (session.status == 'loading' || session.isFetching) {
39+
if (session.status == 'loading') {
4040
return <></>;
4141
}
4242

@@ -49,7 +49,7 @@ export const AuthProvider: React.FC<AuthProviderProps> = ({ children }) => {
4949
requiresNamespace &&
5050
!session.user.namespace;
5151

52-
if (noNamespace) {
52+
if (noNamespace && session.isFetching == false) {
5353
router?.push('/manager/gateways/list').then(() => {
5454
toast({
5555
title: `First select a Gateway to view that page`,

0 commit comments

Comments
 (0)