@capillarytech/creatives-library 3.8.5 → 3.8.7

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": "3.8.5",
4
+ "version": "3.8.7",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -156,17 +156,17 @@ export class TagList extends React.Component { // eslint-disable-line react/pref
156
156
  };
157
157
  };
158
158
  offerDetails.forEach((offer) => {
159
- const { id, couponName, description } = offer;
159
+ const { id, couponName } = offer;
160
160
  const couponSubTags = {};
161
161
  couponTagsKeys.forEach((couponTagKey) => {
162
162
  const couponSubTagsObj = withCouponId(allTags.coupon.subtags[couponTagKey], id);
163
163
  couponSubTags[couponTagKey] = couponSubTagsObj;
164
164
  });
165
- const key = couponName || description || id;
165
+ const key = couponName || id;
166
166
  couponTags[key] = {
167
167
  'tag-header': true,
168
- 'name': key,
169
- 'desc': key,
168
+ 'name': couponName || id,
169
+ 'desc': couponName || id,
170
170
  'couponSeriesId': id,
171
171
  'subtags': couponSubTags,
172
172
  'resolved': true,