Ver código fonte

fix merge conflict

Alexander Belanger 5 anos atrás
pai
commit
af0b538308
1 arquivos alterados com 1 adições e 1 exclusões
  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,
         password: password
       }, {}, (err: any, res: any) => {
-        err ? setCurrentError(JSON.stringify(err)) : authenticate();
+        err ? setCurrentError(err.response.data.errors[0]) : authenticate();
       });
     } 
   };