Skip to content

Commit

Permalink
Menu fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bluo999 committed Mar 25, 2022
1 parent caadb71 commit 20c7271
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/routes/customer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ customerRouter.post('/order/update', async function (req, res) {
}
}else{
if(req.body.amounts == 0) {
return 0;
res.send(orderData);
return;
}
else{
orderData.donuts.push(req.body.donut);
Expand Down

0 comments on commit 20c7271

Please sign in to comment.