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

Commit

Permalink
#878 quickfix
Browse files Browse the repository at this point in the history
  • Loading branch information
damianprzygodzki committed Jun 13, 2017
1 parent e73daa9 commit da068c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/actions/AppActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,8 @@ export function languageSuccess(lang) {
}

export function logoutSuccess(auth) {
return () => {
auth.close();
localStorage.removeItem('isLogged');
}
auth.close();
localStorage.removeItem('isLogged');
}

export function addNotification(title, msg, time, notifType, shortMsg){
Expand Down
2 changes: 1 addition & 1 deletion src/containers/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class App extends Component {
*/
if(error.response.status == 401){
store.dispatch(setProcessSaved());
store.dispatch(logoutSuccess(this.auth));
logoutSuccess(this.auth);
store.dispatch(push('/login?redirect=true'));
}else if(error.response.status != 404){
if(localStorage.isLogged){
Expand Down

0 comments on commit da068c5

Please sign in to comment.