Skip to content

Commit

Permalink
[/cashier-v2] 金額不足時にオーダーを提出できないように (#140)
Browse files Browse the repository at this point in the history
Fixes #127
  • Loading branch information
toririm authored Sep 23, 2024
1 parent 2badeac commit 893decf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/routes/cashier-v2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 893decf

Please sign in to comment.