Fix redirecting issue in APPM Store

This commit is contained in:
Jayasanka 2019-08-05 00:15:32 +05:30
parent a3b796d749
commit 3761d58cda
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ class DetailedRating extends React.Component{
}).catch(function (error) { }).catch(function (error) {
if (error.response.status === 401) { if (error.response.status === 401) {
window.location.href = window.location.origin+'/publisher/login'; window.location.href = window.location.origin+'/store/login';
} }
}); });
}; };

View File

@ -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",