Skip to content

Commit

Permalink
Fix RequireLoggedIn
Browse files Browse the repository at this point in the history
  • Loading branch information
user890104 committed Sep 20, 2024
1 parent 6920705 commit bbf6205
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/widgets/Route/RequireLoggedIn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const RequireLoggedIn = ({
}) => {
const {
data: user,
error,
isLoading,
} = useCurrentUser();

Expand All @@ -22,7 +21,7 @@ const RequireLoggedIn = ({
</Row>);
}

if (!user || error) {
if (!user) {
return (<RedirectToLogin />);
}

Expand Down

0 comments on commit bbf6205

Please sign in to comment.