@open-tender/utils 0.1.70 → 0.1.71
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 -1
- package/dist/esm/utils/cart.js +2 -1
- package/package.json +1 -1
package/dist/cjs/utils/cart.js
CHANGED
|
@@ -208,7 +208,8 @@ const makeOrderItemGroups = (optionGroups, isEdit, soldOut = []) => {
|
|
|
208
208
|
max: g.max_options,
|
|
209
209
|
min: g.min_options,
|
|
210
210
|
name: g.name,
|
|
211
|
-
options: options
|
|
211
|
+
options: options,
|
|
212
|
+
quantity: options.reduce((t, o) => t + o.quantity, 0)
|
|
212
213
|
};
|
|
213
214
|
return group;
|
|
214
215
|
});
|
package/dist/esm/utils/cart.js
CHANGED
|
@@ -196,7 +196,8 @@ const makeOrderItemGroups = (optionGroups, isEdit, soldOut = []) => {
|
|
|
196
196
|
max: g.max_options,
|
|
197
197
|
min: g.min_options,
|
|
198
198
|
name: g.name,
|
|
199
|
-
options: options
|
|
199
|
+
options: options,
|
|
200
|
+
quantity: options.reduce((t, o) => t + o.quantity, 0)
|
|
200
201
|
};
|
|
201
202
|
return group;
|
|
202
203
|
});
|
package/package.json
CHANGED