From 9f9db380e963701b5378936a95bda7d5a221c864 Mon Sep 17 00:00:00 2001 From: nklhrstv Date: Sat, 28 Mar 2020 18:02:24 +0200 Subject: [PATCH] push root path when logged in --- src/routes/Intro/Intro.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/Intro/Intro.js b/src/routes/Intro/Intro.js index 2758ba02e..2e416c883 100644 --- a/src/routes/Intro/Intro.js +++ b/src/routes/Intro/Intro.js @@ -142,7 +142,7 @@ const Intro = ({ queryParams }) => { action: 'Logout' } }); - window.location.replace('#/'); + window.location = '#/'; }, [state.termsAccepted]); const signup = React.useCallback(() => { if (typeof state.email !== 'string' || state.email.length === 0 || !emailRef.current.validity.valid) { @@ -252,7 +252,7 @@ const Intro = ({ queryParams }) => { switch (event) { case 'UserAuthenticated': { closeLoaderModal(); - window.location.replace('#/'); + window.location = '#/'; break; } case 'Error': {