Skip to content

Commit

Permalink
Merge pull request #83 from DEPthes/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
jisupark123 authored Jan 23, 2024
2 parents afb8548 + 176dc10 commit 3d503a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/layouts/onlyNotUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export default function OnlyNotUser({ children }: { children: React.ReactNode })
const { showAlert } = useAlert();
const router = useRouter();
useEffect(() => {
if (!isError) {
if (user) {
router.replace('/');
}
}, [isError, showAlert, router]);
}, [user, showAlert, router]);
return children;
}

0 comments on commit 3d503a7

Please sign in to comment.