From ebea282fae468f25fa81e215a8bc99572eb2e76b Mon Sep 17 00:00:00 2001 From: yoouyeon Date: Tue, 5 Sep 2023 18:40:13 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=20[GGFE-207]=20=EC=97=90=EB=9F=AC?= =?UTF-8?q?=EA=B0=80=20=EB=82=9C=20=EA=B2=BD=EC=9A=B0=EC=97=90=EB=8F=84=20?= =?UTF-8?q?=EB=AA=A8=EB=8B=AC=EC=9D=84=20=EB=8B=AB=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/modal/store/inventory/EditMegaphoneModal.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/modal/store/inventory/EditMegaphoneModal.tsx b/components/modal/store/inventory/EditMegaphoneModal.tsx index 583878a20..7fefd9958 100644 --- a/components/modal/store/inventory/EditMegaphoneModal.tsx +++ b/components/modal/store/inventory/EditMegaphoneModal.tsx @@ -71,7 +71,6 @@ export default function EditMegaphoneModal({ receiptId }: EditMegaphoneProps) { .delete(`/pingpong/megaphones/${megaphoneData.megaphoneId}`) .then(() => { alert('확성기가 삭제되었습니다.'); - resetModal(); }) .catch((error: unknown) => { if (isAxiosError(error) && error.response) { @@ -80,6 +79,9 @@ export default function EditMegaphoneModal({ receiptId }: EditMegaphoneProps) { alert(errorMessages[code]); else setError('JY07'); } else setError('JY07'); + }) + .finally(() => { + resetModal(); }); }