diff --git a/pos/app/routes/cashier-mini.tsx b/pos/app/routes/cashier-mini.tsx index 5e73bcc..1084dee 100644 --- a/pos/app/routes/cashier-mini.tsx +++ b/pos/app/routes/cashier-mini.tsx @@ -75,6 +75,8 @@ export default function CasherMini() { return " "; }, [isOperational, submittedOrderId]); + const charge = useMemo(() => order?.getCharge() ?? 0, [order]); + return ( <>
- お釣り: {order?.getCharge()} 円 + お釣り: {Math.max(charge, 0)} 円