Updated currency format
This commit is contained in:
@@ -37,8 +37,8 @@ export default function ItemCard({ item }: { item: Item }) {
|
||||
</Typography>
|
||||
<Rating name="half-rating" readOnly defaultValue={item.rating} precision={0.5} />
|
||||
<Typography variant="body2" sx={{ color: 'text.secondary' }} className="item-description">
|
||||
{item.price * (1 - item.discount / 100)} €
|
||||
<IconButton aria-label="add to shopping cart" onClick={handleAddToCart}>
|
||||
{(item.price * (1 - item.discount / 100)).toFixed(2)} €
|
||||
<IconButton aria-label={t('addToCart')} onClick={handleAddToCart}>
|
||||
<AddShoppingCart />
|
||||
</IconButton>
|
||||
</Typography>
|
||||
|
||||
Reference in New Issue
Block a user