diff --git a/src/assets/scripts/basket.tsx b/src/assets/scripts/basket.tsx index 520e14a..da7f0a3 100644 --- a/src/assets/scripts/basket.tsx +++ b/src/assets/scripts/basket.tsx @@ -40,6 +40,7 @@ function Basket() { return ( <> +
{basketItems.length > 0 && ( @@ -51,7 +52,7 @@ function Basket() { - + {basketItems.map((product) => { @@ -75,7 +76,9 @@ function Basket() {

)}
-

{/*Should be moved*/} +

Total price: {totalPrice.toFixed(2)}

+

{calculateDiscount(totalPrice)}

{/*Should be moved*/} +
);
Price per unit Quantity Total Total price: {totalPrice.toFixed(2)}. {calculateDiscount(totalPrice)}