From 2f01382f358369cff2c39194c9c11f1a9d53c87c Mon Sep 17 00:00:00 2001 From: toririm Date: Sun, 3 Nov 2024 07:21:13 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20getCoffeeCups=E3=82=92=E4=BD=BF?= =?UTF-8?q?=E3=81=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pos/app/label/print-util.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pos/app/label/print-util.ts b/pos/app/label/print-util.ts index 19b9ebd..93623cb 100644 --- a/pos/app/label/print-util.ts +++ b/pos/app/label/print-util.ts @@ -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);