diff --git a/src/pages/user/Login/index.tsx b/src/pages/user/Login/index.tsx index 72cb6d0..90aea52 100644 --- a/src/pages/user/Login/index.tsx +++ b/src/pages/user/Login/index.tsx @@ -36,7 +36,7 @@ const Login: React.FC = () => { const fetchUserInfo = async () => { const userInfo = await initialState?.fetchUserInfo?.(); if (userInfo) { - await setInitialState((s) => ({ + await setInitialState((s: any) => ({ ...s, currentUser: userInfo, })); @@ -97,17 +97,11 @@ const Login: React.FC = () => {