@nuskin/ns-shop 6.11.0 → 6.11.2
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": "6.11.
|
|
3
|
+
"version": "6.11.2",
|
|
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": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@nuskin/ns-common-lib": "1.4.7",
|
|
27
27
|
"@nuskin/ns-feature-flags": "1.4.7",
|
|
28
28
|
"@nuskin/ns-loyalty-web": "1.5.6",
|
|
29
|
-
"@nuskin/ns-product-lib": "2.14.
|
|
29
|
+
"@nuskin/ns-product-lib": "2.14.6",
|
|
30
30
|
"@nuskin/nuskinjquery": "2.3.1",
|
|
31
31
|
"axios": "1.6.5",
|
|
32
32
|
"decimal.js": "10.4.3",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"@nuskin/exclusive-offer-sdk": "1.2.4",
|
|
41
41
|
"@nuskin/ns-account": "5.9.2",
|
|
42
42
|
"@nuskin/ns-jsanalyzer": "1.0.1",
|
|
43
|
-
"@nuskin/ns-product": "3.47.
|
|
44
|
-
"@nuskin/ns-util": "4.5.
|
|
43
|
+
"@nuskin/ns-product": "3.47.5",
|
|
44
|
+
"@nuskin/ns-util": "4.5.4",
|
|
45
45
|
"axios-mock-adapter": "1.22.0",
|
|
46
46
|
"babel-cli": "6.26.0",
|
|
47
47
|
"babel-core": "6.26.3",
|
|
@@ -325,8 +325,9 @@ const populateShipping = (order, salesOrder) => {
|
|
|
325
325
|
};
|
|
326
326
|
|
|
327
327
|
const addContactInfo = (contacts, selectedAddress) => {
|
|
328
|
-
//Only push contacts if they aren't empty
|
|
329
|
-
|
|
328
|
+
// Only push contacts if they aren't empty
|
|
329
|
+
// Mobile phone is primary. Only add the home phone if there is no mobile phone
|
|
330
|
+
if (selectedAddress.shippingPhone && !selectedAddress.shippingMobilePhone) {
|
|
330
331
|
contacts.push({
|
|
331
332
|
Country: selectedAddress.shippingPhoneCountry || selectedAddress.shippingCountry,
|
|
332
333
|
Value: {
|
|
@@ -46,7 +46,8 @@ function mapShippingPartyToShippingAddress(party) {
|
|
|
46
46
|
function mapShippingAddressToShippingParty(address) {
|
|
47
47
|
|
|
48
48
|
const Contact = [];
|
|
49
|
-
|
|
49
|
+
// Mobile phone is primary. Only add the home phone if we don't have a mobile phone
|
|
50
|
+
if (address.shippingPhone && !address.shippingMobilePhone) {
|
|
50
51
|
Contact.push({
|
|
51
52
|
Country: address.shippingCountry,
|
|
52
53
|
Value: { value: address.shippingPhone, Type: "HOMEPHONE" }
|