redesign / fixes

This commit is contained in:
2021-02-06 15:25:31 +01:00
parent 611b101e9e
commit f25196f57e
26 changed files with 251 additions and 66 deletions

View File

@@ -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("/"));
};
};