Justin Rhee 3 лет назад
Родитель
Сommit
6b59815d75
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      dashboard/src/main/Main.tsx

+ 2 - 0
dashboard/src/main/Main.tsx

@@ -65,6 +65,7 @@ export default class Main extends Component<PropsType, StateType> {
             initialized: true,
             hasInfo: res.data.company_name && true,
             loading: false,
+            userId: res.data.id,
           });
         } else {
           this.setState({ isLoggedIn: false, loading: false });
@@ -99,6 +100,7 @@ export default class Main extends Component<PropsType, StateType> {
             initialized: true,
             hasInfo: res.data.company_name && true,
             loading: false,
+            userId: res.data.id,
           });
         } else {
           this.setState({ isLoggedIn: false, loading: false });