diff --git a/forms-flow-web/src/components/PrivateRoute.jsx b/forms-flow-web/src/components/PrivateRoute.jsx index f074d53f5a..92a2c94875 100644 --- a/forms-flow-web/src/components/PrivateRoute.jsx +++ b/forms-flow-web/src/components/PrivateRoute.jsx @@ -149,7 +149,7 @@ const PrivateRoute = React.memo((props) => { selectedLanguage ; dispatch(setLanguage(lang)); } - }, [kcInstance, isAuth, tenant?.tenantData]); + }, [kcInstance, tenant?.tenantData]); // useMemo prevents unneccessary rerendering caused by the route update.