Skip to content

Commit

Permalink
Merge pull request #61 from pbdsce/revert-60-tempReg
Browse files Browse the repository at this point in the history
Revert "Temporary opening of registrations"
  • Loading branch information
SkySingh04 authored Sep 12, 2024
2 parents 18a97d4 + 2712edf commit c603989
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 c603989

Please sign in to comment.