@capillarytech/creatives-library 7.10.30 → 7.10.31

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.30",
4
+ "version": "7.10.31",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -30,6 +30,7 @@ import { makeSelectFetchingCmsData } from '../Email/selectors';
30
30
  import { IMAGE as LINE_IMAGE, IMAGE_MAP, IMAGE_CAROUSEL, VIDEO as LINE_VIDEO, TEMPLATE, STICKER } from '../Line/Container/constants';
31
31
  import {IMAGE, VIDEO } from '../Facebook/Advertisement/constant';
32
32
  import { CREATIVE } from '../Facebook/constants';
33
+ import { LOYALTY } from '../App/constants';
33
34
 
34
35
 
35
36
  const classPrefix = 'add-creatives-section';
@@ -419,7 +420,10 @@ class Creatives extends React.Component {
419
420
  if (get(template, "value.versions.base")) {
420
421
  const mobilpushTemplate = template.value;
421
422
  templateData.accountId = get(mobilpushTemplate, 'definition.accountId');
422
- templateData.licenseCode = get(mobilpushTemplate, 'definition.licenseCode');
423
+ const pathName = get(this.props,"location.pathname");
424
+ if( pathName && `${pathName}`.includes(LOYALTY)){
425
+ templateData.licenseCode = get(mobilpushTemplate, 'definition.licenseCode');
426
+ }
423
427
  const androidContent = get(mobilpushTemplate, 'versions.base.ANDROID');
424
428
  if (!isEmpty(androidContent)) {
425
429
  delete androidContent.cuid;