fix: redirection from index page
This commit is contained in:
parent
db14e9735e
commit
09e5e631b6
3 changed files with 5 additions and 3 deletions
|
|
@ -131,7 +131,7 @@ export const UserProvider = ({ children }: { children: ReactElement }) => {
|
|||
<UserContext.Provider
|
||||
value={{
|
||||
user: error ? undefined : data,
|
||||
isUserLoading: !(!!data || !!error),
|
||||
isUserLoading: Boolean(data === undefined && error === undefined),
|
||||
mutateUser: mutate,
|
||||
activeWorkspace: workspaceError ? undefined : activeWorkspace,
|
||||
mutateWorkspaces: mutateWorkspaces,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue