@open-tender/utils 0.1.136 → 0.1.137

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.
@@ -166,8 +166,8 @@ const makeOrderItemGroups = (optionGroups, isEdit, soldOut = []) => {
166
166
  : o.opt_is_default && !isEdit
167
167
  ? o.min_quantity || 1
168
168
  : 0;
169
- const cals = o.nutritional_info
170
- ? parseInt((_a = o.nutritional_info.calories) === null || _a === void 0 ? void 0 : _a.toString())
169
+ const cals = ((_a = o.nutritional_info) === null || _a === void 0 ? void 0 : _a.calories)
170
+ ? parseInt(o.nutritional_info.calories.toString())
171
171
  : null;
172
172
  const groups = makeOrderItemGroups(o.option_groups, isEdit, soldOut);
173
173
  const option = {
@@ -154,8 +154,8 @@ const makeOrderItemGroups = (optionGroups, isEdit, soldOut = []) => {
154
154
  : o.opt_is_default && !isEdit
155
155
  ? o.min_quantity || 1
156
156
  : 0;
157
- const cals = o.nutritional_info
158
- ? parseInt((_a = o.nutritional_info.calories) === null || _a === void 0 ? void 0 : _a.toString())
157
+ const cals = ((_a = o.nutritional_info) === null || _a === void 0 ? void 0 : _a.calories)
158
+ ? parseInt(o.nutritional_info.calories.toString())
159
159
  : null;
160
160
  const groups = makeOrderItemGroups(o.option_groups, isEdit, soldOut);
161
161
  const option = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/utils",
3
- "version": "0.1.136",
3
+ "version": "0.1.137",
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",