From a316bb616f1eae2f8530c06b8aae6962ed73232c Mon Sep 17 00:00:00 2001 From: Colin Toft Date: Fri, 23 Aug 2024 15:34:06 -0400 Subject: [PATCH] Fix validation for edit meal request modal --- frontend/src/pages/EditMealRequestForm.tsx | 24 ++++++++-------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/frontend/src/pages/EditMealRequestForm.tsx b/frontend/src/pages/EditMealRequestForm.tsx index 2aeb2a27..a3bafe92 100644 --- a/frontend/src/pages/EditMealRequestForm.tsx +++ b/frontend/src/pages/EditMealRequestForm.tsx @@ -290,13 +290,6 @@ const EditMealRequestForm = ({ } } - if (!isEditDonation) { - if (deliveryInstructions === "") { - setAttemptedSubmit(true); - return false; - } - } - setAttemptedSubmit(false); return true; }; @@ -527,16 +520,17 @@ const EditMealRequestForm = ({ {!isUpcoming ? ( - + Number of meals @@ -552,7 +546,7 @@ const EditMealRequestForm = ({ ) : null} {!isUpcoming ? ( - + ) : null} - + Delivery Notes