fix: Add card unique key
This commit is contained in:
@@ -11,13 +11,15 @@ const ProductCards = ({ products } : ProductCardProps) => {
|
||||
<>
|
||||
{ products.map((product) => {
|
||||
return (
|
||||
<Card
|
||||
image={product.image}
|
||||
name={product.name}
|
||||
price={product.price}
|
||||
description={ product.description}
|
||||
cardId={product.id}
|
||||
/>
|
||||
<div key={product.id}>
|
||||
<Card
|
||||
image={product.image}
|
||||
name={product.name}
|
||||
price={product.price}
|
||||
description={ product.description}
|
||||
cardId={product.id}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}) }
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user