@sabstravtech/obtservices 0.2.2210051325 → 0.2.2210051553

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.
@@ -26057,10 +26057,10 @@
26057
26057
  this._ermTravellerType = type;
26058
26058
  if (this.ermTravellerType === exports.ErmTravellerType.Joiner ||
26059
26059
  this.ermTravellerType === exports.ErmTravellerType.Leaver) {
26060
- sessionStorage.setItem('search_ERM_traveller_type', this.ermTravellerType);
26060
+ this.storageService.setSessionItem('search_ERM_traveller_type', this.ermTravellerType);
26061
26061
  }
26062
26062
  else {
26063
- sessionStorage.removeItem('search_ERM_traveller_type');
26063
+ this.storageService.removeSessionItem('search_ERM_traveller_type');
26064
26064
  }
26065
26065
  },
26066
26066
  enumerable: false,
@@ -26105,7 +26105,7 @@
26105
26105
  this.resetSearchObjects();
26106
26106
  };
26107
26107
  BaseEnterpriseSearchService.prototype.resetTravellerType = function () {
26108
- sessionStorage.removeItem('search_ERM_traveller_type');
26108
+ this.storageService.removeSessionItem('search_ERM_traveller_type');
26109
26109
  this.ermTravellerType = exports.ErmTravellerType.None;
26110
26110
  };
26111
26111
  BaseEnterpriseSearchService.prototype.getUserCurrentCarbonAllowance = function (user, isLoading) {
@@ -26748,8 +26748,8 @@
26748
26748
  if (searchObject) {
26749
26749
  searchObject.chosen = true;
26750
26750
  }
26751
- if (sessionStorage.getItem('search_ERM_traveller_type')) {
26752
- this.ermTravellerType = sessionStorage.getItem('search_ERM_traveller_type');
26751
+ if (this.storageService.getSessionItem('search_ERM_traveller_type')) {
26752
+ this.ermTravellerType = this.storageService.getSessionItem('search_ERM_traveller_type');
26753
26753
  }
26754
26754
  if (searchObject && !this.router.url.includes(searchObject.resultUrl)) {
26755
26755
  this.router.navigate([searchObject.resultUrl]);