From 7473260dcbb72f9856c2989ae62452cf8e21a0d5 Mon Sep 17 00:00:00 2001 From: shuhaib s <95394061+shuhaib-aot@users.noreply.github.com> Date: Wed, 29 May 2024 14:50:37 +0530 Subject: [PATCH] Update PrivateRoute.jsx --- forms-flow-web/src/components/PrivateRoute.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.