fix des prix promo et des images lors du delete dans le cart
This commit is contained in:
@@ -28,9 +28,13 @@ const CartButton = () => {
|
||||
<ModalBody>
|
||||
{productsCount > 0 ?
|
||||
<>
|
||||
{cart.items.map((item) => <CartCard product={item}></CartCard>)}
|
||||
{cart.items.map(
|
||||
(item) =>
|
||||
(
|
||||
<CartCard key={item.id} product={item} />
|
||||
))}
|
||||
<div className="payer">
|
||||
<h className="total">Total: {cart.getTotalCost().toFixed(2)}$ CAD</h>
|
||||
<h className="total">Sous-total: {cart.getTotalCost().toFixed(2)}$ CAD</h>
|
||||
<Button className="payer">Payer</Button>
|
||||
</div>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user