Explorar o código

fix(login): update fetchUserInfo

Lind %!s(int64=4) %!d(string=hai) anos
pai
achega
8f3ac5f655
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/pages/user/Login/index.tsx

+ 1 - 1
src/pages/user/Login/index.tsx

@@ -37,7 +37,7 @@ const Login: React.FC = () => {
   const fetchUserInfo = async () => {
     const userInfo = (await initialState?.fetchUserInfo?.()) as UserInfo;
     if (userInfo) {
-      setInitialState({
+      await setInitialState({
         ...initialState,
         currentUser: userInfo,
       });