@nuskin/ns-shop 7.1.1-pur-813.4 → 7.1.1-pur-813.5
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
|
@@ -154,7 +154,8 @@ const populateAttribution = (salesOrder) => {
|
|
|
154
154
|
|
|
155
155
|
const populateShipping = (order, salesOrder) => {
|
|
156
156
|
const user = UserService.getUser();
|
|
157
|
-
const
|
|
157
|
+
const useShipMethodsApi = getCachedConfigField('useShipMethodsApi')
|
|
158
|
+
const defaultCode = useShipMethodsApi ? getCachedConfigField('defaultShipMethod') : '';
|
|
158
159
|
const method = order.selectedShippingMethod;
|
|
159
160
|
const code = method ? method.Code : defaultCode;
|
|
160
161
|
|