Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Merge pull request #671 from metasfresh/dev-661
Browse files Browse the repository at this point in the history
#661 Connection problem displayed on login form
  • Loading branch information
damianprzygodzki authored Apr 21, 2017
2 parents 688081c + 66576b7 commit ea83cc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/app/LoginForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ class LoginForm extends Component {
})
.catch(err => {
this.setState({
err: err.response.data.message,
err: (err.response ?
err.response.data.message : 'Connection problem'),
pending: false
});
})
Expand Down

0 comments on commit ea83cc1

Please sign in to comment.