From b16e3e83b6614467a58a9ea3c9fb927a8d2b1883 Mon Sep 17 00:00:00 2001 From: Richard Pryce Date: Thu, 25 May 2023 15:44:16 +0100 Subject: [PATCH] Rp/fix token refresh (#12) * correctly update userContext * v2.0.2 --------- Co-authored-by: Richard Pryce --- src/components/AppSwitcher/LoginComponent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {