Skip to content

Commit

Permalink
tweak auth context
Browse files Browse the repository at this point in the history
  • Loading branch information
ikethecoder committed Jan 7, 2025
1 parent 841e1e9 commit 623559e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nextapp/shared/services/auth/auth-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const AuthProvider: React.FC<AuthProviderProps> = ({ children }) => {

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

if (session.status == 'loading' || session.isFetching) {
if (session.status == 'loading') {
return <></>;
}

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

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

0 comments on commit 623559e

Please sign in to comment.