@plasmicpkgs/commerce 0.0.20 → 0.0.21

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.
@@ -2430,8 +2430,8 @@ function ProductSlider(props) {
2430
2430
  selected = _React$useState[0],
2431
2431
  setSelected = _React$useState[1];
2432
2432
 
2433
- var maximumRight = product.images.length - thumbsVisible;
2434
- var leftIndex = Math.min(maximumRight, Math.max(0, selected - 1));
2433
+ var maximumLeft = Math.max(0, product.images.length - thumbsVisible);
2434
+ var leftIndex = Math.min(maximumLeft, Math.max(0, selected - 1));
2435
2435
  return React.createElement("div", {
2436
2436
  className: className
2437
2437
  }, React.createElement(ProductMediaProvider, {