@nuskin/ns-shop 5.19.6 → 5.19.8

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": "5.19.6",
3
+ "version": "5.19.8",
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": {
@@ -1305,7 +1305,7 @@ function checkContext(params){
1305
1305
  if (context === 'skin_consult'){
1306
1306
  return params.isMySite
1307
1307
  } else {
1308
- return params.isMySite || window.location.href.search(/\bmysite\b/) >= 0;
1308
+ return typeof params.isMySite === 'boolean' ? params.isMySite : window.location.href.search(/\bmysite\b/) >= 0;
1309
1309
  }
1310
1310
  }
1311
1311
 
@@ -144,7 +144,8 @@ const populateShipping = (order, salesOrder) => {
144
144
 
145
145
  salesOrder['Shipping'] = {
146
146
  ShippingMethod:{
147
- Code:code
147
+ Code:code,
148
+ ...(nsConfig.checkout.showSignatureRequired && !order.signatureRequired && {NoSignatureRequired: "X"})
148
149
  },
149
150
  ShippingParty:[]
150
151
  };