Skip to content

Commit

Permalink
fix: remove the auto logout
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahuletto committed Sep 21, 2024
1 parent d8df2da commit bcfc6b7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions components/Sidebar/ProfileBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ export default function ProfileBadge({ className }: { className?: string }) {
};
}, []);

useEffect(() => {
if (!isLoading && !user && !error && dialogRoot) {
alert("Cannot get users data. Logging you out.");
router.push("/auth/logout");
}
}, [isLoading, user, error, router, dialogRoot]);

const openDialog = () => setIsDialogOpen(true);
const closeDialog = () => setIsDialogOpen(false);
const logout = () => {
Expand Down

0 comments on commit bcfc6b7

Please sign in to comment.