Преглед изворни кода

fix(login): update fetchUserInfo

Lind пре 4 година
родитељ
комит
8f3ac5f655
1 измењених фајлова са 1 додато и 1 уклоњено
  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,
       });