@capillarytech/creatives-library 7.10.32 → 7.10.33

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.10.32",
4
+ "version": "7.10.33",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -420,8 +420,8 @@ class Creatives extends React.Component {
420
420
  if (get(template, "value.versions.base")) {
421
421
  const mobilpushTemplate = template.value;
422
422
  templateData.accountId = get(mobilpushTemplate, 'definition.accountId');
423
- const pathName = get(this.props,"location.pathname");
424
- if(`${pathName}`.includes(LOYALTY)){
423
+ const type = (get(this.props,"messageDetails.type") || '').toLowerCase();
424
+ if(type === LOYALTY){
425
425
  templateData.licenseCode = get(mobilpushTemplate, 'definition.licenseCode');
426
426
  }
427
427
  const androidContent = get(mobilpushTemplate, 'versions.base.ANDROID');