From 4f8a0cfee38602b883162b176f171e644ec52b25 Mon Sep 17 00:00:00 2001 From: svetlagasheva Date: Fri, 6 Mar 2020 18:19:38 +0200 Subject: [PATCH] Intro switch form location fixed --- src/routes/Intro/Intro.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/Intro/Intro.js b/src/routes/Intro/Intro.js index 0b4eee6aa..bd00249f0 100644 --- a/src/routes/Intro/Intro.js +++ b/src/routes/Intro/Intro.js @@ -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'))) {