From 20e08187a3530ca004a32594976f7d2f379d41db Mon Sep 17 00:00:00 2001 From: Soyeon Choe <77609591+soi-ha@users.noreply.github.com> Date: Fri, 23 Aug 2024 00:01:42 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20title=EA=B3=BC=20price=EC=97=90=20?= =?UTF-8?q?=EA=B0=92=EC=9D=B4=20=EC=A1=B4=EC=9E=AC=ED=95=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EC=9D=84=20=EA=B2=BD=EC=9A=B0=20=EC=A7=80=EC=B6=9C=20?= =?UTF-8?q?input=20=EB=8B=AB=EA=B8=B0=20(#472)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/hooks/useSetBillInput.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/hooks/useSetBillInput.ts b/client/src/hooks/useSetBillInput.ts index 4f839602a..a14b2a481 100644 --- a/client/src/hooks/useSetBillInput.ts +++ b/client/src/hooks/useSetBillInput.ts @@ -52,6 +52,8 @@ const useSetBillInput = ({setIsAddEditableItem}: UseSetBillInputProps): UseSetBi }, }, ); + } else if (!isEmptyTitle && !isEmptyPrice) { + setIsAddEditableItem(false); } };