diff --git a/src/routers/index.tsx b/src/routers/index.tsx index b72235a1c..b1e8f568d 100644 --- a/src/routers/index.tsx +++ b/src/routers/index.tsx @@ -120,7 +120,7 @@ const ProtectedRoute = () => { } dispatch({ type: 'INITIALIZE', payload: { isAuthenticated: !!token } }); - }, [token, localProxyValue, logout, setAuth, setLocalProxyValue]); + }, [token, localProxyValue, logout, setAuth, setLocalProxyValue, setModelType, setInitState, setIsFirstLaunch]); if (state.loading || !state.initialized) { return (