@hmcts/rpx-xui-common-lib 1.7.18 → 1.7.19-create-booking

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.
@@ -4198,8 +4198,7 @@
4198
4198
  bookingLocations = JSON.parse(this.sessionStorageService.getItem('bookingLocations'));
4199
4199
  }
4200
4200
  else if (this.bookingCheck === BookingCheckType.POSSIBLE_BOOKINGS) {
4201
- userLocations = JSON.parse(this.sessionStorageService.getItem('userLocations'));
4202
- this.serviceIds = JSON.parse(this.sessionStorageService.getItem('bookableServices'));
4201
+ this.serviceIds = this.serviceIds && this.serviceIds.length ? this.serviceIds : JSON.parse(this.sessionStorageService.getItem('bookableServices'));
4203
4202
  }
4204
4203
  return this.locationService.getAllLocations(this.serviceIds, this.locationType, term, userLocations, bookingLocations);
4205
4204
  };