push root path when logged in

This commit is contained in:
nklhrstv 2020-03-28 18:02:24 +02:00
parent 948ff51d3b
commit 9f9db380e9

View file

@ -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': {