Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
fix image in product detail
Browse files Browse the repository at this point in the history
  • Loading branch information
billowdev committed May 24, 2023
1 parent ee7afb5 commit d4a0a23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/product/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,8 @@ function UserPanelProduct({ product }: Props) {
}}
>
<Image
alt="product image"
src={groupDataImageURL(product?.groupData?.banner)}
alt="banner image"
src={groupDataImageURL(product?.groupData?.banner === "banner.png" ? product?.groupData?.banner:"/static/img/banner.png")}
width={1120}
height={160}
/>
Expand All @@ -468,8 +468,8 @@ function UserPanelProduct({ product }: Props) {
<Grid item xs={12} md={4} lg={3}>
<Image
style={{ objectFit: "cover" }}
alt="product image"
src={groupDataImageURL(product?.groupData?.logo)}
alt="logo image"
src={groupDataImageURL(product?.groupData?.logo === "logo.png" ? product?.groupData?.logo:"/static/img/banner.png")}
width={250}
height={250}
/>
Expand Down

0 comments on commit d4a0a23

Please sign in to comment.