JWT refresh

This commit is contained in:
2020-11-29 20:23:20 +01:00
parent e48d300ca9
commit 6d02533d69
18 changed files with 69 additions and 22 deletions

View File

@@ -202,7 +202,7 @@ export default function NewRestaurant() {
"success"
)
);
dispatch(refreshUserData(token));
dispatch(refreshUserData());
history.push("/");
})
.catch((error) => {
@@ -215,6 +215,7 @@ export default function NewRestaurant() {
)
);
history.push("/");
throw error;
});
};