Skip to content

Commit 05f5bbb

Browse files
committed
fix: 봉사 신청/히스토리 에러 응답 데이터 JSON 문자열 변환
에러 응답 데이터를 콘솔에 출력할 때 JSON 문자열로 변환하여 가독성을 높입니다 - 기존에는 객체 형태로 출력되어 내용을 파악하기 어려웠음 - JSON.stringify()를 사용하여 문자열 형태로 변환하여 출력
1 parent 8039310 commit 05f5bbb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pages/Volunteer/Application.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const VolunteerApplication = () => {
2929
'Status:',
3030
error.response?.status,
3131
'Message:',
32-
error.response?.data,
32+
JSON.stringify(error.response?.data),
3333
);
3434
return;
3535
}

src/pages/Volunteer/History.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const VolunteerHistory = () => {
2929
'Status:',
3030
error.response?.status,
3131
'Message:',
32-
error.response?.data,
32+
JSON.stringify(error.response?.data),
3333
);
3434
return;
3535
}

0 commit comments

Comments
 (0)