@capillarytech/creatives-library 7.17.66-alpha.7 → 7.17.66
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
package/utils/common.js
CHANGED
|
@@ -249,17 +249,17 @@ export function transformBadgeTags(badgeDetails = [], allTags) {
|
|
|
249
249
|
};
|
|
250
250
|
};
|
|
251
251
|
badgeDetails.forEach((offer) => {
|
|
252
|
-
const {
|
|
252
|
+
const { badgesMetaId, badgeName } = offer || {};
|
|
253
253
|
const badgeSubTags = {};
|
|
254
254
|
badgeTagsKeys.forEach((badgeTagKey) => {
|
|
255
|
-
const badgeSubTagsObj = withBadgeId(allTags?.Badge?.subtags?.[badgeTagKey],
|
|
255
|
+
const badgeSubTagsObj = withBadgeId(allTags?.Badge?.subtags?.[badgeTagKey], badgesMetaId);
|
|
256
256
|
badgeSubTags[badgeTagKey] = badgeSubTagsObj;
|
|
257
257
|
});
|
|
258
|
-
badgeTags[
|
|
258
|
+
badgeTags[badgesMetaId] = {
|
|
259
259
|
'tag-header': true,
|
|
260
260
|
'name': badgeName,
|
|
261
261
|
'desc': badgeName,
|
|
262
|
-
'incentiveSeriesId':
|
|
262
|
+
'incentiveSeriesId': badgesMetaId,
|
|
263
263
|
'subtags': badgeSubTags,
|
|
264
264
|
'resolved': true,
|
|
265
265
|
'couponTags': true,
|
|
@@ -572,7 +572,7 @@ export const output2 = [
|
|
|
572
572
|
},
|
|
573
573
|
];
|
|
574
574
|
export const offer = [
|
|
575
|
-
{
|
|
575
|
+
{ badgesMetaId: "12", badgeName: "moye_moye", type: "BADGES_ENROLL" },
|
|
576
576
|
];
|
|
577
577
|
export const expectedOffer = [
|
|
578
578
|
{
|