diff --git a/src/App/withProtectedRoutes.js b/src/App/withProtectedRoutes.js index 5532a08aa..ac9e8737b 100644 --- a/src/App/withProtectedRoutes.js +++ b/src/App/withProtectedRoutes.js @@ -13,7 +13,7 @@ const withProtectedRoutes = (Component) => { window.location = '#/intro'; } previousProfileRef.current = profile; - }, [profile]) + }, [profile]); const onRouteChange = React.useCallback((routeConfig) => { if (profile.auth !== null && routeConfig.component === Intro) { window.location.replace('#/');