@nuskin/ns-shop 7.3.0-mdigi-897.5 → 7.3.0-mdigi-897.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-shop",
3
- "version": "7.3.0-mdigi-897.5",
3
+ "version": "7.3.0-mdigi-897.7",
4
4
  "description": "The description that will amaze and astound your audience when they read it",
5
5
  "main": "src/shop.js",
6
6
  "scripts": {
@@ -1040,12 +1040,12 @@ const populateSalesOrder = (action, adr) => {
1040
1040
  if (user && user.isGuest) {
1041
1041
  addToCustomList(salesOrder.Custom, "FLAG", "GUEST", "TRUE");
1042
1042
  }
1043
- addToCustomList(salesOrder.Custom, "FLAG", "UTM_SOURCE", utmInfo?.utm_source);
1044
- addToCustomList(salesOrder.Custom, "FLAG", "UTM_MEDIUM", utmInfo?.utm_medium);
1045
- addToCustomList(salesOrder.Custom, "FLAG", "UTM_CAMPAIGN", utmInfo?.utm_campaign);
1046
- addToCustomList(salesOrder.Custom, "FLAG", "UTM_CAMPAIGN_ID", utmInfo?.utm_id);
1047
- addToCustomList(salesOrder.Custom, "FLAG", "UTM_CONTENT", utmInfo?.utm_content);
1048
- addToCustomList(salesOrder.Custom, "FLAG", "UTM_TERM", utmInfo?.utm_term);
1043
+ addToCustomList(salesOrder.Custom, "FLAG", "UTM_SOURCE", utmInfo ? utmInfo.utm_source : null);
1044
+ addToCustomList(salesOrder.Custom, "FLAG", "UTM_MEDIUM", utmInfo ? utmInfo.utm_medium : null);
1045
+ addToCustomList(salesOrder.Custom, "FLAG", "UTM_CAMPAIGN", utmInfo ? utmInfo.utm_campaign : null);
1046
+ addToCustomList(salesOrder.Custom, "FLAG", "UTM_CAMPAIGN_ID", utmInfo ? utmInfo.utm_id : null);
1047
+ addToCustomList(salesOrder.Custom, "FLAG", "UTM_CONTENT", utmInfo ? utmInfo.utm_content : null);
1048
+ addToCustomList(salesOrder.Custom, "FLAG", "UTM_TERM", utmInfo ? utmInfo.utm_term : null);
1049
1049
  const microsite = getCachedConfigField('microsite');
1050
1050
  if (microsite) {
1051
1051
  salesOrder.Reason = "CUSTOM";
@@ -229,7 +229,7 @@ function productSearchAPI(deferred, options) {
229
229
  }
230
230
  });
231
231
 
232
- console.log('Products' , mappedProducts)
232
+ // console.log('Products' , mappedProducts)
233
233
 
234
234
  return mappedProducts.map((product) => {
235
235
  baseScore -= 0.01;