@thefittingroom/shop-ui 1.5.2 → 1.5.3

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.
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * thefittingroom v1.5.2 (2024-09-02T22:33:59.821Z)
2
+ * thefittingroom v1.5.3 (2024-09-03T15:46:41.127Z)
3
3
  * Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
4
4
  */
5
5
  function loadImageRecursive(imageURL, imageURLs) {
@@ -47,7 +47,7 @@ const InitImageSlider = (sliderID, onChange) => {
47
47
  };
48
48
 
49
49
  /*!
50
- * thefittingroom v1.5.1 (2024-09-02T22:33:26.212Z)
50
+ * thefittingroom v1.5.2 (2024-09-03T15:43:56.403Z)
51
51
  * Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
52
52
  */
53
53
 
@@ -27433,8 +27433,11 @@ class TfrSizeRec {
27433
27433
  size: sizeRec.available_sizes.find((size) => size.id === fit.size_id).label,
27434
27434
  locations: fit.measurement_location_fits
27435
27435
  .map((locationFit) => {
27436
+ const fitLabel = typeof locationFit.fit_label === 'string' && locationFit.fit_label
27437
+ ? locationFit.fit_label
27438
+ : index.FitNames[locationFit.fit];
27436
27439
  return {
27437
- fit: index.FitNames[locationFit.fit],
27440
+ fit: fitLabel,
27438
27441
  isPerfect: this.perfectFits.includes(locationFit.fit),
27439
27442
  location: this.tfrShop.getMeasurementLocationName(locationFit.measurement_location),
27440
27443
  sortOrder: this.tfrShop.getMeasurementLocationSortOrder(locationFit.measurement_location),