Skip to content

Commit

Permalink
Merge pull request #92 from Chaem03/feature/#22
Browse files Browse the repository at this point in the history
Fix: 삭제 API요청 수정
  • Loading branch information
Chaem03 authored Sep 24, 2024
2 parents 64baeb5 + c5decd4 commit cd8211c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/DetailLetter/DetailLetter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cd8211c

Please sign in to comment.