Skip to content

Commit

Permalink
fix(getFeed): 응답 형식 변경에 따른 리턴 값 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
joojjang committed Nov 20, 2024
1 parent 7320b8e commit 5c2efbc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/apis/products/useGetFeed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ type GetFeedResponse = {
async function getFeed(size: number): Promise<GetFeedResponse> {
try {
const response = await fetchInstance().get(`/products/feed?size=${size}`);
// console.log('getFeed response: ', response);

return response.data;
return response.data.data;
} catch (error) {
if (isAxiosError(error)) {
if (error.response) {
Expand Down

0 comments on commit 5c2efbc

Please sign in to comment.