Testing login backend

This commit is contained in:
2019-10-02 22:53:31 -04:00
parent 5df28e0e77
commit 8de496826a
4 changed files with 20 additions and 11 deletions

View File

@@ -85,6 +85,7 @@ export class edit extends Component {
axios
.post("/updateProfileInfo", newProfileData)
.then((res) => {
console.log(res);
this.setState({
loading: false
});
@@ -92,6 +93,7 @@ export class edit extends Component {
// TODO: Need to redirect user to their profile page
})
.catch((err) => {
console.log(err);
this.setState({
errors: err.response.data,
loading: false