From 20c72713b5a605d0a287ea402f4317b4a993b575 Mon Sep 17 00:00:00 2001 From: Brian Luo Date: Thu, 24 Mar 2022 23:48:00 -0400 Subject: [PATCH] Menu fix --- backend/src/routes/customer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/routes/customer.ts b/backend/src/routes/customer.ts index 2dab02f..f22047c 100644 --- a/backend/src/routes/customer.ts +++ b/backend/src/routes/customer.ts @@ -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);