mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
fix: set isLoadingUser in useAuth hook
This commit is contained in:
@@ -45,6 +45,10 @@ const RequireAuth = ({ children }: RequireAuthProps) => {
|
||||
}
|
||||
}, [userErrorResponse, setUser]);
|
||||
|
||||
useEffect(() => {
|
||||
setIsLoadingUser(isLoadingUserResponse);
|
||||
}, [isLoadingUserResponse]);
|
||||
|
||||
if (
|
||||
(isLoadingUserResponse && !userResponse && !userErrorResponse) ||
|
||||
(!userResponse && !userErrorResponse)
|
||||
|
||||
Reference in New Issue
Block a user