diff --git a/src/routes/Intro/Intro.js b/src/routes/Intro/Intro.js index 7b3a3a71c..2758ba02e 100644 --- a/src/routes/Intro/Intro.js +++ b/src/routes/Intro/Intro.js @@ -238,7 +238,7 @@ const Intro = ({ queryParams }) => { } }, [queryParams]); React.useEffect(() => { - if (typeof state.error === 'string' && state.error.length > 0) { + if (routeFocused && typeof state.error === 'string' && state.error.length > 0) { errorRef.current.scrollIntoView(); } }, [state.error]);