@open-tender/utils 0.0.56 → 0.0.57
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
|
@@ -258,8 +258,8 @@ const makeOrderItem = (item, isEdit, soldOut = [], simpleItem, hasPoints = false
|
|
|
258
258
|
description: item.description,
|
|
259
259
|
imageUrl: item.large_image_url,
|
|
260
260
|
slug: item.slug,
|
|
261
|
-
allergens: (0, exports.convertStringToArray)(item.allergens.join()),
|
|
262
|
-
tags: (0, exports.convertStringToArray)(item.tags.join()),
|
|
261
|
+
allergens: (0, exports.convertStringToArray)(Array.from(item.allergens).join()),
|
|
262
|
+
tags: (0, exports.convertStringToArray)(Array.from(item.tags).join()),
|
|
263
263
|
ingredients: item.ingredients,
|
|
264
264
|
nutritionalInfo: item.nutritional_info,
|
|
265
265
|
cals: isNaN(cals !== null && cals !== void 0 ? cals : 0) ? null : cals,
|
package/dist/esm/utils/cart.js
CHANGED
|
@@ -241,8 +241,8 @@ export const makeOrderItem = (item, isEdit, soldOut = [], simpleItem, hasPoints
|
|
|
241
241
|
description: item.description,
|
|
242
242
|
imageUrl: item.large_image_url,
|
|
243
243
|
slug: item.slug,
|
|
244
|
-
allergens: convertStringToArray(item.allergens.join()),
|
|
245
|
-
tags: convertStringToArray(item.tags.join()),
|
|
244
|
+
allergens: convertStringToArray(Array.from(item.allergens).join()),
|
|
245
|
+
tags: convertStringToArray(Array.from(item.tags).join()),
|
|
246
246
|
ingredients: item.ingredients,
|
|
247
247
|
nutritionalInfo: item.nutritional_info,
|
|
248
248
|
cals: isNaN(cals !== null && cals !== void 0 ? cals : 0) ? null : cals,
|
package/package.json
CHANGED