From 45329b39a5b18d08c80c478d27df12c09fa3589f Mon Sep 17 00:00:00 2001 From: chaem03 Date: Tue, 24 Sep 2024 20:06:56 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EC=82=AD=EC=A0=9C=20API=EC=9A=94?= =?UTF-8?q?=EC=B2=AD=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/DetailLetter/DetailLetter.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/DetailLetter/DetailLetter.jsx b/src/pages/DetailLetter/DetailLetter.jsx index 722039f..0267fbc 100644 --- a/src/pages/DetailLetter/DetailLetter.jsx +++ b/src/pages/DetailLetter/DetailLetter.jsx @@ -62,7 +62,7 @@ const DetailLetter = () => { try { const response = await instance.delete(`/api/choco/${id}`); - if (response.data) { + if (response.status === 204) { console.log("삭제가 완료되었습니다."); navigate(-1);