This commit is contained in:
IlyaDoronin 2024-04-12 19:02:47 +03:00 committed by Nastya
parent a1336a367c
commit c57023b9c6
4 changed files with 9 additions and 9 deletions

@ -139,7 +139,7 @@ export default function CustomWrapperDrawer({ serviceData }: Props) {
fontWeight: 500,
}}
>
{currencyFormatter.format(serviceData.price / 100)}
{currencyFormatter.format(Math.trunc(serviceData.price) / 100)}
</Typography>
</Box>
</Box>
@ -211,7 +211,7 @@ export default function CustomWrapperDrawer({ serviceData }: Props) {
fontWeight: 500,
}}
>
{currencyFormatter.format((tariff.price || privilege.price) / 100)}
{currencyFormatter.format(Math.trunc(tariff.price || privilege.price) / 100)}
</Typography>
<SvgIcon
sx={{

@ -300,7 +300,7 @@ function Drawers() {
order: upMd ? 1 : 2,
}}
>
{currencyFormatter.format(cart.priceBeforeDiscounts / 100)}
{currencyFormatter.format(Math.trunc(cart.priceBeforeDiscounts) / 100)}
</Typography>
<Typography
variant="p1"
@ -312,7 +312,7 @@ function Drawers() {
mr: "20px",
}}
>
{currencyFormatter.format(cart.priceAfterDiscounts / 100)}
{currencyFormatter.format(Math.trunc(cart.priceAfterDiscounts) / 100)}
</Typography>
</Box>
</Badge>
@ -327,7 +327,7 @@ function Drawers() {
>
{notEnoughMoneyAmount > 0 && (
<Alert severity="error" variant="filled">
Не хватает {currencyFormatter.format(notEnoughMoneyAmount / 100)}
Не хватает {currencyFormatter.format(Math.trunc(notEnoughMoneyAmount) / 100)}
</Alert>
)}
<Button

@ -155,7 +155,7 @@ export default function TotalPrice({ priceAfterDiscounts, priceBeforeDiscounts,
order: upMd ? 2 : 1,
}}
>
{currencyFormatter.format(priceAfterDiscounts / 100)}
{currencyFormatter.format(Math.trunc(priceAfterDiscounts) / 100)}
</Typography>
</Box>
</Badge>
@ -163,7 +163,7 @@ export default function TotalPrice({ priceAfterDiscounts, priceBeforeDiscounts,
gap: "30px", flexWrap: "wrap",}}>
{notEnoughMoneyAmount > 0 && (
<Alert severity="error" variant="filled">
Не хватает {currencyFormatter.format(notEnoughMoneyAmount / 100)}
Не хватает {currencyFormatter.format(Math.trunc(notEnoughMoneyAmount) / 100)}
</Alert>
)}
<Button

@ -114,9 +114,9 @@ function TariffPage() {
price={
<>
{priceBeforeDiscounts !== priceAfterDiscounts && (
<Typography variant="oldPrice">{currencyFormatter.format(priceBeforeDiscounts / 100)}</Typography>
<Typography variant="oldPrice">{currencyFormatter.format(Math.trunc(priceBeforeDiscounts) / 100)}</Typography>
)}
<Typography variant="price">{currencyFormatter.format(priceAfterDiscounts / 100)}</Typography>
<Typography variant="price">{currencyFormatter.format(Math.trunc(priceAfterDiscounts) / 100)}</Typography>
</>
}
/>