Skip to content

Commit

Permalink
refactor: getCoffeeCupsを使う
Browse files Browse the repository at this point in the history
  • Loading branch information
toririm committed Nov 2, 2024
1 parent e3ca290 commit 2f01382
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pos/app/label/print-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@ export const usePrinter = () => {
const items = order.items.toSorted((a, b) => a.name.localeCompare(b.name));
rawPrinter.init();

const coffees = items.filter(
(item) =>
item.type === "hot" ||
item.type === "ice" ||
item.type === "hotOre" ||
item.type === "iceOre",
);
const coffees = order.getCoffeeCups();

console.log(coffees);

Expand Down

0 comments on commit 2f01382

Please sign in to comment.