- uncommented error status code;
This commit is contained in:
@@ -8,12 +8,11 @@ export class NetworkService {
|
||||
if (status === 500) {
|
||||
logMsgWithSentry(endpoint, status, resp);
|
||||
} else if (status === 403) {
|
||||
console.error('endpoint: ', endpoint, status);
|
||||
/*storeSet('token', '');
|
||||
storeSet('token', '');
|
||||
const { pathname } = window.location;
|
||||
if (!['/login', '/registration', '/loginadmin', '/reset-password-admin', '/confidi', '/reset-password'].includes(pathname)) {
|
||||
window.location.replace('/login');
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user