From 189a67e6c3564e396114ffd58fa234341968221c Mon Sep 17 00:00:00 2001 From: suyeon Date: Thu, 15 May 2025 17:10:44 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B3=84=EC=95=BD=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=20=EC=8B=9C=20=EA=B8=B0=EC=A1=B4=20=EB=8D=B0=EC=9D=B4=ED=84=B0?= =?UTF-8?q?=20=EB=B6=88=EB=9F=AC=EC=98=A4=EA=B8=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ContractEditModal/ContractEditModal.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pages/ContractListPage/ContractAddButtonList/ContractEditModal/ContractEditModal.tsx b/src/pages/ContractListPage/ContractAddButtonList/ContractEditModal/ContractEditModal.tsx index 7a21fdd..ded052f 100644 --- a/src/pages/ContractListPage/ContractAddButtonList/ContractEditModal/ContractEditModal.tsx +++ b/src/pages/ContractListPage/ContractAddButtonList/ContractEditModal/ContractEditModal.tsx @@ -136,10 +136,9 @@ const ContractEditModal = ({ ); const matchedProperty = allProperties.find( - (p: { propertyUid: string }) => p.propertyUid === data.propertyUid + (p) => p.address === data.propertyAddress ); - console.log(price.a); - setPropertyUid(matchedProperty?.uid ?? null); + setPropertyUid(matchedProperty ? matchedProperty.uid : null); setCategory( data.category === "null" || data.category === undefined