Skip to content

Commit

Permalink
Merge pull request #115 from UMC-FITple/fix/#114
Browse files Browse the repository at this point in the history
Fix/#114 오류해결
  • Loading branch information
kangsuyeong authored Aug 23, 2024
2 parents bf9b89c + 9ee6bf7 commit 5c8f288
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions FITple-Frontend/src/components/UserItem/UserItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,19 @@ const UserItem = ({ ...props }) => {
console.log(isOpen);
};
return (
<Container>
{/* 아이템 이미지 */}
<ImgWrap onClick={navgateToDetail}>
<ItemImg
src={
item.cloth_image ||
"https://search.pstatic.net/common/?src=https%3A%2F%2Fshopping-phinf.pstatic.net%2Fmain_8829244%2F88292446418.jpg&type=f372_372"
}
/>
{item.likes == 1 && <HeartImg src={HeartIcon} />}
</ImgWrap>
<>


{props.data[0] !== "해당 제품은 등록되어 있지 않아요." ? (
<Container>
{/* 아이템 이미지 */}
<ImgWrap onClick={navgateToDetail}>
<ItemImg
src={
item.cloth_image ||
"https://search.pstatic.net/common/?src=https%3A%2F%2Fshopping-phinf.pstatic.net%2Fmain_8829244%2F88292446418.jpg&type=f372_372"
}
/>
{item.likes == 1 && <HeartImg src={HeartIcon} />}
</ImgWrap>
{/* 유저정보 */}
<UserInfo {...props}>
{/* 유저 프로필 */}
Expand Down Expand Up @@ -90,7 +89,7 @@ const UserItem = ({ ...props }) => {
</ItemWrap>
</Container>
) : (
<div>상품이 없습니다</div>
<div>데이터가없습니다.</div>
)}
</>
);
Expand Down

0 comments on commit 5c8f288

Please sign in to comment.