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

Commit

Permalink
#661 Connection problem displayed on login form
Browse files Browse the repository at this point in the history
  • Loading branch information
damianprzygodzki committed Apr 20, 2017
1 parent 03f3e26 commit 66576b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion src/components/header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ class Header extends Component {
/>}

<GlobalContextShortcuts
handleSidelistToggle={(id) =>
handleSidelistToggle={(id) =>
this.handleSidelistToggle(id, sideListTab)}
handleMenuOverlay={isMenuOverlayShow ?
() => this.handleMenuOverlay('', '') :
Expand Down

0 comments on commit 66576b7

Please sign in to comment.