Skip to content

Commit

Permalink
login required for recruitment page
Browse files Browse the repository at this point in the history
  • Loading branch information
kamini08 committed Oct 15, 2024
1 parent ba09c01 commit 9d04102
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/(default)/recruitment/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import Link from "next/link";
const RegisterPage = () => {
const router = useRouter();

// useEffect(() => {
// onAuthStateChanged(auth, (user) => {
// if (!user) {
// router.push("/login");
// }
// });
// });
useEffect(() => {
onAuthStateChanged(auth, (user) => {
if (!user) {
router.push("/login");
}
});
});

// useEffect(() => {
// router.push("/");
Expand Down

0 comments on commit 9d04102

Please sign in to comment.