ソースを参照

properly set user id

Justin Rhee 3 年 前
コミット
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 });