diff --git a/app/(default)/sihregistration/page.tsx b/app/(default)/sihregistration/page.tsx index 184b717..7a26964 100644 --- a/app/(default)/sihregistration/page.tsx +++ b/app/(default)/sihregistration/page.tsx @@ -11,10 +11,10 @@ import { useRouter } from "next/navigation"; const RegisterPage = () => { const router = useRouter(); -// useEffect(() => { -// router.push("/"); -// } -// ) + useEffect(() => { + router.push("/"); + } +) onAuthStateChanged(auth, (user) => { if (!user) { router.push("/login"); diff --git a/components/forms/sihForm.tsx b/components/forms/sihForm.tsx index f30039e..503244a 100644 --- a/components/forms/sihForm.tsx +++ b/components/forms/sihForm.tsx @@ -23,10 +23,10 @@ const SIHMultiStepForm: React.FC = () => { const [recaptchaToken, setRecaptchaToken] = useState(null); const router = useRouter(); -// useEffect(() => { -// router.push("/"); -// } -// ) + useEffect(() => { + router.push("/"); + } +) useEffect(() => { onAuthStateChanged(auth, (user) => {