@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.
- package/dist/cjs/utils/cart.js +2 -2
- package/dist/esm/utils/cart.js +2 -2
- package/package.json +1 -1
package/dist/cjs/utils/cart.js
CHANGED
|
@@ -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(
|
|
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 = {
|
package/dist/esm/utils/cart.js
CHANGED
|
@@ -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(
|
|
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