Alexander Belanger 5 rokov pred
rodič
commit
b87c7a4922
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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();
       });
       });
     } 
     } 
   };
   };