@open-tender/store 0.2.13 → 0.2.14

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.
@@ -215,7 +215,8 @@ var makeTicketGroups = function (tickets, itemTypes, isAssembly, cart, modifiers
215
215
  var newGroup = hideTicket ? group : tslib_1.__spreadArray(tslib_1.__spreadArray([], group, true), [ticket], false);
216
216
  return tslib_1.__assign(tslib_1.__assign({}, obj), (_a = {}, _a[i.item_type_id] = newGroup, _a));
217
217
  }, {});
218
- return Object.values(grouped);
218
+ var groups = Object.values(grouped);
219
+ return groups.filter(function (group) { return group.length; });
219
220
  };
220
221
  exports.makeTicketGroups = makeTicketGroups;
221
222
  var makeDisplayCounts = function (counts) {
@@ -199,7 +199,8 @@ export var makeTicketGroups = function (tickets, itemTypes, isAssembly, cart, mo
199
199
  var newGroup = hideTicket ? group : __spreadArray(__spreadArray([], group, true), [ticket], false);
200
200
  return __assign(__assign({}, obj), (_a = {}, _a[i.item_type_id] = newGroup, _a));
201
201
  }, {});
202
- return Object.values(grouped);
202
+ var groups = Object.values(grouped);
203
+ return groups.filter(function (group) { return group.length; });
203
204
  };
204
205
  export var makeDisplayCounts = function (counts) {
205
206
  if (!counts)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/store",
3
- "version": "0.2.13",
3
+ "version": "0.2.14",
4
4
  "description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",