Skip to content

Commit

Permalink
Force push to / route
Browse files Browse the repository at this point in the history
Signed-off-by: Akash <[email protected]>
  • Loading branch information
SkySingh04 committed Aug 22, 2024
1 parent 37369b8 commit a7ba891
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/(default)/recruitment/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ import { useRouter } from "next/navigation";
const RegisterPage = () => {
const router = useRouter();

// useEffect(() => {
// onAuthStateChanged(auth, (user) => {
// if (!user) {
// router.push("/login");
// }
// });
// });\
useEffect(() => {
onAuthStateChanged(auth, (user) => {
if (!user) {
router.push("/login");
}
else{
router.push("/dashboard"); //remove during recruitment
}
});
});
router.push("/");
})
return (

<div className="w-50 mt-16 mx-auto flex flex-col items-center justify-center">
Expand Down

0 comments on commit a7ba891

Please sign in to comment.