mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-05 00:10:16 +00:00
Intro switch form location fixed
This commit is contained in:
parent
dfe6495552
commit
4f8a0cfee3
1 changed files with 1 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ const Intro = ({ queryParams }) => {
|
|||
const switchFormOnClick = React.useCallback(() => {
|
||||
const nextQueryParams = new URLSearchParams(queryParams);
|
||||
nextQueryParams.set('form', state.form === SIGNUP_FORM ? LOGIN_FORM : SIGNUP_FORM);
|
||||
window.location.replace(`#/intro?${nextQueryParams}`);
|
||||
window.location = `#/intro?${nextQueryParams}`;
|
||||
}, [queryParams, state.form]);
|
||||
React.useEffect(() => {
|
||||
if ([LOGIN_FORM, SIGNUP_FORM].includes(queryParams.get('form'))) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue