|
|
@ -57,7 +57,7 @@ class Dashboard extends React.Component {
|
|
|
|
|
|
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
}).catch((error) => {
|
|
|
|
if (error.hasOwnProperty("response") && error.response.status === 401) {
|
|
|
|
if (error.hasOwnProperty("response") && error.response.status === 401) {
|
|
|
|
window.location.href = window.location.origin + '/publisher/login';
|
|
|
|
window.location.href = window.location.origin + '/store/login';
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
notification["error"]({
|
|
|
|
notification["error"]({
|
|
|
|
message: "There was a problem",
|
|
|
|
message: "There was a problem",
|
|
|
|