mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 15:52:02 +00:00
push root path when logged in
This commit is contained in:
parent
948ff51d3b
commit
9f9db380e9
1 changed files with 2 additions and 2 deletions
|
|
@ -142,7 +142,7 @@ const Intro = ({ queryParams }) => {
|
||||||
action: 'Logout'
|
action: 'Logout'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
window.location.replace('#/');
|
window.location = '#/';
|
||||||
}, [state.termsAccepted]);
|
}, [state.termsAccepted]);
|
||||||
const signup = React.useCallback(() => {
|
const signup = React.useCallback(() => {
|
||||||
if (typeof state.email !== 'string' || state.email.length === 0 || !emailRef.current.validity.valid) {
|
if (typeof state.email !== 'string' || state.email.length === 0 || !emailRef.current.validity.valid) {
|
||||||
|
|
@ -252,7 +252,7 @@ const Intro = ({ queryParams }) => {
|
||||||
switch (event) {
|
switch (event) {
|
||||||
case 'UserAuthenticated': {
|
case 'UserAuthenticated': {
|
||||||
closeLoaderModal();
|
closeLoaderModal();
|
||||||
window.location.replace('#/');
|
window.location = '#/';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'Error': {
|
case 'Error': {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue