@plasmicpkgs/commerce 0.0.20 → 0.0.23

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.
@@ -2437,8 +2437,8 @@ function ProductSlider(props) {
2437
2437
  selected = _React$useState[0],
2438
2438
  setSelected = _React$useState[1];
2439
2439
 
2440
- var maximumRight = product.images.length - thumbsVisible;
2441
- var leftIndex = Math.min(maximumRight, Math.max(0, selected - 1));
2440
+ var maximumLeft = Math.max(0, product.images.length - thumbsVisible);
2441
+ var leftIndex = Math.min(maximumLeft, Math.max(0, selected - 1));
2442
2442
  return React__default.createElement("div", {
2443
2443
  className: className
2444
2444
  }, React__default.createElement(ProductMediaProvider, {