meemup-library 1.8.9 → 1.9.0

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.
@@ -211,7 +211,7 @@ class SimplePreviewController {
211
211
  return content;
212
212
  }
213
213
  printProductCount(template, detail, task) {
214
- if (!Array.isArray(task.seats) || task.seats.length === 0) {
214
+ if (detail.order.orderType !== EnumOrderType.dining && !Array.isArray(task.seats) || ((task === null || task === void 0 ? void 0 : task.seats) || []).length === 0) {
215
215
  const list = this.filterByCategoryList(this.sortProduct(detail.products, template.sortProducts), template.printOnlyCertainCategoriesList, template.printOnlyCertainCategories, template.printOnlyCertainProductsList, template.printOnlyCertainProducts);
216
216
  const count = MoneyController.sum(list.map(i => i.quantity));
217
217
  let content = this.createDivContainer(template);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.8.9",
3
+ "version": "1.9.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "remove:one": "rimraf dist",
12
12
  "remove:two": "rimraf ./src/dist",
13
13
  "test": "echo \"Error: no test specified\" && exit 1",
14
- "commit": "git add . && git commit -m \"version.1.8.9\" && git push origin "
14
+ "commit": "git add . && git commit -m \"version.1.9.0\" && git push origin "
15
15
  },
16
16
  "files": [
17
17
  "/dist"