@open-tender/utils 0.5.63 → 0.5.64

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.
@@ -214,7 +214,7 @@ const makeOrderItemGroups = (optionGroups, isEdit, soldOut = [], requestedAt = n
214
214
  const quantity = isSoldOut
215
215
  ? 0
216
216
  : o.opt_is_default && !isEdit
217
- ? o.min_quantity
217
+ ? o.min_quantity || 1
218
218
  : 0;
219
219
  const cals = ((_a = o.nutritional_info) === null || _a === void 0 ? void 0 : _a.calories)
220
220
  ? parseInt(o.nutritional_info.calories.toString())
@@ -199,7 +199,7 @@ const makeOrderItemGroups = (optionGroups, isEdit, soldOut = [], requestedAt = n
199
199
  const quantity = isSoldOut
200
200
  ? 0
201
201
  : o.opt_is_default && !isEdit
202
- ? o.min_quantity
202
+ ? o.min_quantity || 1
203
203
  : 0;
204
204
  const cals = ((_a = o.nutritional_info) === null || _a === void 0 ? void 0 : _a.calories)
205
205
  ? parseInt(o.nutritional_info.calories.toString())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/utils",
3
- "version": "0.5.63",
3
+ "version": "0.5.64",
4
4
  "description": "A library of utils for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",