From bbf6205362bcfa8929facc1f65673e962131a542 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Fri, 20 Sep 2024 22:21:11 +0300 Subject: [PATCH] Fix RequireLoggedIn --- src/widgets/Route/RequireLoggedIn.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/widgets/Route/RequireLoggedIn.jsx b/src/widgets/Route/RequireLoggedIn.jsx index 2de0de0..5e0a4da 100644 --- a/src/widgets/Route/RequireLoggedIn.jsx +++ b/src/widgets/Route/RequireLoggedIn.jsx @@ -10,7 +10,6 @@ const RequireLoggedIn = ({ }) => { const { data: user, - error, isLoading, } = useCurrentUser(); @@ -22,7 +21,7 @@ const RequireLoggedIn = ({ ); } - if (!user || error) { + if (!user) { return (); }