From 82b83f50440fa3e8caef3a9c70183b7f8e84f703 Mon Sep 17 00:00:00 2001 From: "masato.fujita" Date: Tue, 17 Jun 2025 10:31:35 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E6=95=B0=E3=81=8C=E5=85=A5=E5=8A=9B?= =?UTF-8?q?=E3=81=95=E3=82=8C=E3=81=A6=E3=81=84=E3=81=AA=E3=81=84=E5=A0=B4?= =?UTF-8?q?=E5=90=88=E3=81=AB=E3=82=82=E8=B2=B7=E3=81=86=E3=82=82=E3=81=AE?= =?UTF-8?q?=E3=83=AA=E3=82=B9=E3=83=88=E3=81=AB=E8=BF=BD=E5=8A=A0=E3=81=A7?= =?UTF-8?q?=E3=81=8D=E3=81=A6=E3=81=97=E3=81=BE=E3=81=86=E3=83=90=E3=82=B0?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/AddRecipe.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/pages/AddRecipe.tsx b/frontend/src/pages/AddRecipe.tsx index a4f52ab..6a2e230 100644 --- a/frontend/src/pages/AddRecipe.tsx +++ b/frontend/src/pages/AddRecipe.tsx @@ -154,6 +154,11 @@ const AddRecipe: React.FC = () => { console.log("before"); if (!recipeId) return false; console.log("ds"); + if (!numOfPeaple) { + showErrorMessage('人数が入力されていません!') + console.log("yes2"); + return false; + } await toBuyApi.addByRecipe(recipeId, numOfPeaple); showSuccessMessage('レシピが保存されて買うものリストに追加されました!'); navigate('/tasks');