Преглед на файлове

Merge pull request #2740 from porter-dev/login-revamp

properly set user id
jusrhee преди 3 години
родител
ревизия
631d81146c
променени са 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 });