Skip to content

Commit

Permalink
Create New Form Type , New Form type Array , Dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarKoraa committed May 4, 2019
1 parent 66e03da commit 445c676
Show file tree
Hide file tree
Showing 12 changed files with 1,720 additions and 256 deletions.
499 changes: 282 additions & 217 deletions client/src/App.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions client/src/components/pages/CreateANewCompany.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,10 @@ class CreateANewCompany extends Component {
//console.log(error.response.data.error.details['0'].message)

// alert(error.response.data.error.details['0'].message)
if(error.response.data.error.details)
alert(error.response.data.error.details['0'].message || error.response.data.error || error.response.data.errmsg||error.response.data);
else
alert(error.response.data.errmsg||error.response.data.error||error.response.data)
//console.log(error);
});
};
Expand Down
Loading

0 comments on commit 445c676

Please sign in to comment.