@ppg_pl/pallete 2.0.21 → 2.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.
@@ -2970,7 +2970,7 @@ const MyModal = class {
2970
2970
  if (!this.colorIsSelected) {
2971
2971
  const result = this.chunks(this.colors.list)
2972
2972
  .map((innerArray, arrayIndex) => {
2973
- const foundColor = innerArray.find(color => { var _a, _b; return color.name.trim() === ((_b = (_a = this.selectedcolor) === null || _a === void 0 ? void 0 : _a.trim()) === null || _b === void 0 ? void 0 : _b.toUpperCase()); });
2973
+ const foundColor = innerArray.find(color => { var _a, _b, _c; return ((_a = color.name.trim()) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === ((_c = (_b = this.selectedcolor) === null || _b === void 0 ? void 0 : _b.trim()) === null || _c === void 0 ? void 0 : _c.toUpperCase()); });
2974
2974
  return foundColor ? { color: foundColor, index: arrayIndex } : null;
2975
2975
  })
2976
2976
  .filter(item => item !== null);
@@ -2982,6 +2982,10 @@ const MyModal = class {
2982
2982
  componentWillLoad() {
2983
2983
  this.preloader = true;
2984
2984
  this.fetchProductData();
2985
+ setDataLayer({
2986
+ shop: this.shop,
2987
+ product: this.product,
2988
+ });
2985
2989
  }
2986
2990
  componentWillRender() {
2987
2991
  this.displayForMobile();