diff --git a/src/components/AppSwitcher/LoginComponent.tsx b/src/components/AppSwitcher/LoginComponent.tsx index a5dd2c7..37f4042 100644 --- a/src/components/AppSwitcher/LoginComponent.tsx +++ b/src/components/AppSwitcher/LoginComponent.tsx @@ -58,7 +58,7 @@ const LoginComponent:React.FC = (props) => { return (()=>{ window.clearInterval(intervalTimerId); }) - }, []); + }, [userContext]); useEffect(()=>{ if(refreshFailed) {