JWT refresh
This commit is contained in:
@@ -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;
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user