Explorar el Código

fix(login): update fetchUserInfo

Lind hace 4 años
padre
commit
8f3ac5f655
Se han modificado 1 ficheros con 1 adiciones y 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,
       });