Skip to content

Commit

Permalink
Merge pull request #104 from TEAM-SYLUV/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
seokkkkkk authored Aug 5, 2024
2 parents 0931e22 + 3e80f51 commit b275ec3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/Market/MarketList.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ const MarketList = ({
category: searchInfo.category,
},
});
setStoreList(response.data.payload);
const filteredStores = response.data.payload.filter(
(store) => store.marketId.toString() === marketId.toString()
);
setStoreList(filteredStores);
} catch (error) {
console.error("Error fetching data:", error);
}
Expand All @@ -35,7 +38,7 @@ const MarketList = ({

return (
<Container>
{storeList ? (
{storeList?.length > 0 ? (
storeList.map((store) => (
<MarketItem
key={store.storeId}
Expand Down
1 change: 1 addition & 0 deletions src/components/Store/MenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const MenuItemImage = styled.img`
border-radius: 12px;
display: flex;
object-fit: cover;
min-width: 104px;
`;

const MenuItemInfo = styled.div`
Expand Down

0 comments on commit b275ec3

Please sign in to comment.