JWT refresh
This commit is contained in:
@@ -159,11 +159,12 @@ export default function EditCategoriesList(props) {
|
||||
.then((response) => {
|
||||
dispatch(hideBackdrop());
|
||||
dispatch(notification("Zmieniono zestaw.", "success"));
|
||||
dispatch(refreshUserData(token));
|
||||
dispatch(refreshUserData());
|
||||
})
|
||||
.catch((error) => {
|
||||
dispatch(hideBackdrop());
|
||||
dispatch(notification("Wystąpił błąd.", "error"));
|
||||
throw error;
|
||||
});
|
||||
} else {
|
||||
dispatch(notification("Popraw dane.", "error"));
|
||||
|
||||
Reference in New Issue
Block a user