From 893decfabce3ffa3da37dc5993095ba395a63921 Mon Sep 17 00:00:00 2001 From: Ryunosuke Tokinaga <59079411+toririm@users.noreply.github.com> Date: Mon, 23 Sep 2024 20:07:37 +0900 Subject: [PATCH] =?UTF-8?q?[/cashier-v2]=20=E9=87=91=E9=A1=8D=E4=B8=8D?= =?UTF-8?q?=E8=B6=B3=E6=99=82=E3=81=AB=E3=82=AA=E3=83=BC=E3=83=80=E3=83=BC?= =?UTF-8?q?=E3=82=92=E6=8F=90=E5=87=BA=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=20(#140)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #127 --- app/routes/cashier-v2.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/routes/cashier-v2.tsx b/app/routes/cashier-v2.tsx index 5f1c593f..8b111435 100644 --- a/app/routes/cashier-v2.tsx +++ b/app/routes/cashier-v2.tsx @@ -38,6 +38,9 @@ export default function Cashier() { const chargeView: string | number = charge < 0 ? "不足しています" : charge; const submitOrder = () => { + if (charge < 0) { + return; + } if (orderItems.length === 0) { return; }