Skip to content

Commit

Permalink
Merge pull request #60 from pbdsce/tempReg
Browse files Browse the repository at this point in the history
Temporary opening of registrations
  • Loading branch information
SkySingh04 authored Sep 12, 2024
2 parents 3fb9c22 + 41f44ab commit 18a97d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions app/(default)/sihregistration/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
8 changes: 4 additions & 4 deletions components/forms/sihForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ const SIHMultiStepForm: React.FC = () => {
const [recaptchaToken, setRecaptchaToken] = useState<string | null>(null);
const router = useRouter();

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

useEffect(() => {
onAuthStateChanged(auth, (user) => {
Expand Down

0 comments on commit 18a97d4

Please sign in to comment.