redesign / fixes
This commit is contained in:
@@ -22,7 +22,7 @@ axios.interceptors.response.use(
|
||||
})
|
||||
resolve(response)
|
||||
}
|
||||
throw error;
|
||||
store.dispatch(logout());
|
||||
})
|
||||
});
|
||||
|
||||
@@ -272,7 +272,9 @@ export const changePassword = (email, password, token) => {
|
||||
export const logout = () => {
|
||||
return function (dispatch) {
|
||||
dispatch(notification("Wylogowano.", "info"));
|
||||
dispatch(toggles.hideBackdrop());
|
||||
dispatch(toggles.setLoggedOut());
|
||||
dispatch(push("/"));
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user