Skip to content

Commit

Permalink
Merge pull request #59 from Choco-Express/dev
Browse files Browse the repository at this point in the history
✅ api 연결 확인
  • Loading branch information
kimyeonjinn authored Sep 15, 2024
2 parents 378be90 + d53352c commit d591928
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/ChocoList/ChocoList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ const ChocoList = () => {
try {
const response = await instance.get(`/api/choco?page=${page}`);
console.log("API Response:", response.data);

if (response.data && response.data.message === "OK") {
if (response.data && response.data.message === "SUCCESS") {
const { chocoList, totalPage } = response.data.result;
setChocoData(chocoList);
setTotalPages(totalPage);
Expand Down

0 comments on commit d591928

Please sign in to comment.