ソースを参照

fix merge conflict

Alexander Belanger 5 年 前
コミット
b87c7a4922
1 ファイル変更1 行追加1 行削除
  1. 1 1
      dashboard/src/main/Register.tsx

+ 1 - 1
dashboard/src/main/Register.tsx

@@ -48,7 +48,7 @@ export default class Register extends Component<PropsType, StateType> {
         email: email,
         email: email,
         password: password
         password: password
       }, {}, (err: any, res: any) => {
       }, {}, (err: any, res: any) => {
-        err ? setCurrentError(err.response.data.errors[0]) : authenticate();
+        err ? setCurrentError(JSON.stringify(err)) : authenticate();
       });
       });
     } 
     } 
   };
   };