From da068c56bfb9c7c156a768fcdfe1d8627bc84436 Mon Sep 17 00:00:00 2001 From: "damian.przygodzki" Date: Tue, 13 Jun 2017 13:59:40 +0200 Subject: [PATCH] #878 quickfix --- src/actions/AppActions.js | 6 ++---- src/containers/App.js | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/actions/AppActions.js b/src/actions/AppActions.js index 4629a0d3e..739dfe047 100644 --- a/src/actions/AppActions.js +++ b/src/actions/AppActions.js @@ -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){ diff --git a/src/containers/App.js b/src/containers/App.js index 1003590b9..761136b37 100644 --- a/src/containers/App.js +++ b/src/containers/App.js @@ -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){