@nuskin/ns-shop 7.8.0-pa-902.1 → 7.8.0-pa-902.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
|
@@ -171,7 +171,7 @@ const getDefaultShipCode = (osmc) => {
|
|
|
171
171
|
if (useShipMethodsApi) {
|
|
172
172
|
const csDefaultCode = getCachedConfigField('defaultShipMethod');
|
|
173
173
|
const shipMethods = PickupUtil.getStoredShipMethods();
|
|
174
|
-
if (shipMethods
|
|
174
|
+
if (shipMethods.length > 0) {
|
|
175
175
|
const firstSm = shipMethods[0].Code;
|
|
176
176
|
const defaultShipMethod = shipMethods.find((sm) => sm.Code === osmc);
|
|
177
177
|
if (!defaultShipMethod) {
|