@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-shop",
3
- "version": "7.8.0-pa-902.1",
3
+ "version": "7.8.0-pa-902.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": {
@@ -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?.length > 0) {
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) {