diff --git a/frontend/src/apis/getApi.ts b/frontend/src/apis/getApi.ts index 65849cc40..e46c351ec 100644 --- a/frontend/src/apis/getApi.ts +++ b/frontend/src/apis/getApi.ts @@ -15,11 +15,10 @@ export const getApi = async ( }, }); - console.log('response', response); - console.log('responseJson', response.json()); - const responseData: T = await response.json(); if (response.status !== 200) { + console.log(response, 'response'); + console.log(responseData, 'responseData'); throw new Error('API 요청에 실패했습니다.'); }