diff --git a/src/components/Item.js b/src/components/Item.js index 2f03fa7..7ef6e22 100644 --- a/src/components/Item.js +++ b/src/components/Item.js @@ -168,37 +168,50 @@ const Item = ({ lineHeight: '1rem', marginLeft: 10 }}> - {promoPrice && promoPrice != 0 && promoPrice != '' && -
- Promo -
-} -
- {promoPrice} - {initialPrice} -
+ {promoPrice && promoPrice != 0 && promoPrice != '' ? + <> +
+ Promo {(((initialPrice - promoPrice) / initialPrice) * 100).toFixed(0)}% +
+ +
+ {promoPrice} + {initialPrice} +
+ + : + <> + +
+ {initialPrice} +
+ + } )} @@ -250,7 +263,7 @@ const Item = ({