Skip to content

Commit

Permalink
fix : seperate login
Browse files Browse the repository at this point in the history
  • Loading branch information
jiwonh423 committed Aug 14, 2023
1 parent fc06e62 commit 936cfdf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/apis/getApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ export const getApi = async <T>(
},
});

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 ์š”์ฒญ์— ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค.');
}

Expand Down

0 comments on commit 936cfdf

Please sign in to comment.