@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.
@@ -2966,7 +2966,7 @@ const MyModal = class {
2966
2966
  if (!this.colorIsSelected) {
2967
2967
  const result = this.chunks(this.colors.list)
2968
2968
  .map((innerArray, arrayIndex) => {
2969
- 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()); });
2969
+ 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()); });
2970
2970
  return foundColor ? { color: foundColor, index: arrayIndex } : null;
2971
2971
  })
2972
2972
  .filter(item => item !== null);
@@ -2978,6 +2978,10 @@ const MyModal = class {
2978
2978
  componentWillLoad() {
2979
2979
  this.preloader = true;
2980
2980
  this.fetchProductData();
2981
+ setDataLayer({
2982
+ shop: this.shop,
2983
+ product: this.product,
2984
+ });
2981
2985
  }
2982
2986
  componentWillRender() {
2983
2987
  this.displayForMobile();