From ed5cf0454cc768bec56fcb0ca494624089efb5af Mon Sep 17 00:00:00 2001 From: "Rayyan (Rayy)" Date: Tue, 19 Sep 2023 11:06:46 +0000 Subject: [PATCH] Add Redirect to homepage from signup --- src/App.js | 2 +- src/pages/Signup.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 5f62653..e70ba0d 100644 --- a/src/App.js +++ b/src/App.js @@ -92,7 +92,7 @@ const signIn = ( email, password ) => { return (
- + } /> } /> diff --git a/src/pages/Signup.js b/src/pages/Signup.js index d1bb9c8..8bd18fb 100644 --- a/src/pages/Signup.js +++ b/src/pages/Signup.js @@ -27,6 +27,7 @@ export function Signup ( props ) { useEffect( () => { if( auth ) { // go to home page + console.log(auth) navigate("/") } }, [auth])