@thefittingroom/shop-ui 1.5.0 → 1.5.1

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.0 (2024-09-01T16:53:36.094Z)
2
+ * thefittingroom v1.5.1 (2024-09-01T17:00:41.740Z)
3
3
  * Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
4
4
  */
5
5
  function loadImageRecursive(imageURL, imageURLs) {
@@ -26765,7 +26765,6 @@ class SizeRecComponent {
26765
26765
  renderSizeRecTable(sizes, index) {
26766
26766
  const { locations } = sizes[index];
26767
26767
  const html = locations
26768
- .sort(({ location: a }, { location: b }) => (a < b ? -1 : 1))
26769
26768
  .map(({ location, fit, isPerfect }) => this.renderSizeRecTableRow(location, fit, isPerfect))
26770
26769
  .join('');
26771
26770
  this.tfrSizeRecTable.innerHTML = html;
@@ -26789,10 +26788,7 @@ class SizeRecComponent {
26789
26788
  return `<div class="tfr-size-rec-login-cta"><img src="${loginIconSrc}" /> Sign up or login to view</div>`;
26790
26789
  }
26791
26790
  renderGarmentLocations(locations) {
26792
- const html = locations
26793
- .sort()
26794
- .map((location) => this.renderSizeRecTableRow(location, this.renderLoginCta()))
26795
- .join('');
26791
+ const html = locations.map((location) => this.renderSizeRecTableRow(location, this.renderLoginCta())).join('');
26796
26792
  this.tfrSizeRecTable.innerHTML = html;
26797
26793
  this.tfrSizeRecSize.innerHTML = this.renderLoginCta();
26798
26794
  }