Skip to content

Commit

Permalink
add task solution
Browse files Browse the repository at this point in the history
  • Loading branch information
AvramenkoMarina committed Nov 10, 2024
1 parent 0a2e46b commit 7dedc36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ItemsProduct/ItemsProduct.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export const ItemsProduct: React.FC<Props> = ({ product, discount }) => {
className={styles.product_image_img}
src={
product.images
? `./img/${product.images[0]}`
: `./img/${product.image}`
? `./img/${product.category.toLowerCase()}/${product.images[0]}`
: `./img/${product.category.toLowerCase()}/${product.images}`
}
alt="image/product"
/>
Expand Down

0 comments on commit 7dedc36

Please sign in to comment.