Intro switch form location fixed

This commit is contained in:
svetlagasheva 2020-03-06 18:19:38 +02:00
parent dfe6495552
commit 4f8a0cfee3

View file

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