monkey-front-core 0.0.548 → 0.0.550

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5158,7 +5158,9 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
5158
5158
  handleMessage(error, mkc) {
5159
5159
  // eslint-disable-next-line camelcase
5160
5160
  const { notifications, error_description, message } = error?.error || {
5161
- notifications: '', error_description: '', message: ''
5161
+ notifications: '',
5162
+ error_description: '',
5163
+ message: ''
5162
5164
  };
5163
5165
  let customMessage = '';
5164
5166
  if (message) {
@@ -5186,7 +5188,7 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
5186
5188
  });
5187
5189
  reader.readAsText(blob);
5188
5190
  }
5189
- else {
5191
+ else if (!error?.url?.includes('assets.monkey')) {
5190
5192
  this.showMessage(this.__i18n['ERROR-HANDLING']?.ERROR, error, mkc);
5191
5193
  }
5192
5194
  }
@@ -5197,7 +5199,7 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
5197
5199
  async handleError(error, mkc) {
5198
5200
  const { router, tokenStorage } = this;
5199
5201
  const { status } = error;
5200
- const { companyType } = await tokenStorage?.getToken() || { companyType: '' };
5202
+ const { companyType } = (await tokenStorage?.getToken()) || { companyType: '' };
5201
5203
  const routes = {
5202
5204
  403: 'forbidden',
5203
5205
  500: 'service-problems',