@antscorp/antsomi-ui 1.3.5-beta.894 → 1.3.5-beta.895

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.
@@ -58,7 +58,7 @@ export const getStringHtmlByType = (item, eType = 'product') => {
58
58
  return `<span class="title-no-url">N/A</span>`;
59
59
  }
60
60
  const label = validateDate.name || 'N/A';
61
- const url = eType === 'product' ? validateDate.page_url : validateDate.url || '';
61
+ const url = (eType === 'product' ? validateDate.page_url : validateDate.url) || '';
62
62
  if (url.length === 0) {
63
63
  return `<span class="title-no-url">${label}</span>`;
64
64
  }
@@ -179,6 +179,7 @@ export const getInfoEvent = (eType, itemEvent, eventTracking, customerName, conf
179
179
  itemEvent.pageType === 'view' ||
180
180
  itemEvent.pageType === 'add_to_cart') {
181
181
  // PAGETYPE CLICK OR VIEW
182
+ console.log('itemEvent.items[0]', itemEvent);
182
183
  data.product_name = getStringHtmlByType(itemEvent.items[0], eType);
183
184
  }
184
185
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.894",
3
+ "version": "1.3.5-beta.895",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",