Skip to content

Commit

Permalink
Merge pull request #90 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 3aaabcd + e6f342b commit 64baeb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/pages/ChocoList/ChocoList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const ChocoList = () => {

if (response.data && response.data.message === "SUCCESS") {
const { chocoList, totalPage } = response.data.result;
console.log("chocoList:", chocoList);

console.log("chocolist:", chocoList);
console.log("totalPage:", totalPage);

setChocoData(chocoList);
Expand Down
2 changes: 1 addition & 1 deletion src/router.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const router = createBrowserRouter([
element: <MyboxSelectPage />,
},
{ path: "/detailletter/:id", element: <DetailLetter /> },
{ path: "/chocolist", element: <ChocoList /> },
{ path: "/chocolist/:boxId", element: <ChocoList /> },
{ path: "/mypage", element: <MyPage /> },
],
errorElement: <NotFound />,
Expand Down

0 comments on commit 64baeb5

Please sign in to comment.