fix: mb
This commit is contained in:
parent
a1336a367c
commit
c57023b9c6
@ -139,7 +139,7 @@ export default function CustomWrapperDrawer({ serviceData }: Props) {
|
|||||||
fontWeight: 500,
|
fontWeight: 500,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{currencyFormatter.format(serviceData.price / 100)}
|
{currencyFormatter.format(Math.trunc(serviceData.price) / 100)}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
@ -211,7 +211,7 @@ export default function CustomWrapperDrawer({ serviceData }: Props) {
|
|||||||
fontWeight: 500,
|
fontWeight: 500,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{currencyFormatter.format((tariff.price || privilege.price) / 100)}
|
{currencyFormatter.format(Math.trunc(tariff.price || privilege.price) / 100)}
|
||||||
</Typography>
|
</Typography>
|
||||||
<SvgIcon
|
<SvgIcon
|
||||||
sx={{
|
sx={{
|
||||||
|
@ -300,7 +300,7 @@ function Drawers() {
|
|||||||
order: upMd ? 1 : 2,
|
order: upMd ? 1 : 2,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{currencyFormatter.format(cart.priceBeforeDiscounts / 100)}
|
{currencyFormatter.format(Math.trunc(cart.priceBeforeDiscounts) / 100)}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography
|
<Typography
|
||||||
variant="p1"
|
variant="p1"
|
||||||
@ -312,7 +312,7 @@ function Drawers() {
|
|||||||
mr: "20px",
|
mr: "20px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{currencyFormatter.format(cart.priceAfterDiscounts / 100)}
|
{currencyFormatter.format(Math.trunc(cart.priceAfterDiscounts) / 100)}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
</Badge>
|
</Badge>
|
||||||
@ -327,7 +327,7 @@ function Drawers() {
|
|||||||
>
|
>
|
||||||
{notEnoughMoneyAmount > 0 && (
|
{notEnoughMoneyAmount > 0 && (
|
||||||
<Alert severity="error" variant="filled">
|
<Alert severity="error" variant="filled">
|
||||||
Не хватает {currencyFormatter.format(notEnoughMoneyAmount / 100)}
|
Не хватает {currencyFormatter.format(Math.trunc(notEnoughMoneyAmount) / 100)}
|
||||||
</Alert>
|
</Alert>
|
||||||
)}
|
)}
|
||||||
<Button
|
<Button
|
||||||
|
@ -155,7 +155,7 @@ export default function TotalPrice({ priceAfterDiscounts, priceBeforeDiscounts,
|
|||||||
order: upMd ? 2 : 1,
|
order: upMd ? 2 : 1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{currencyFormatter.format(priceAfterDiscounts / 100)}
|
{currencyFormatter.format(Math.trunc(priceAfterDiscounts) / 100)}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
</Badge>
|
</Badge>
|
||||||
@ -163,7 +163,7 @@ export default function TotalPrice({ priceAfterDiscounts, priceBeforeDiscounts,
|
|||||||
gap: "30px", flexWrap: "wrap",}}>
|
gap: "30px", flexWrap: "wrap",}}>
|
||||||
{notEnoughMoneyAmount > 0 && (
|
{notEnoughMoneyAmount > 0 && (
|
||||||
<Alert severity="error" variant="filled">
|
<Alert severity="error" variant="filled">
|
||||||
Не хватает {currencyFormatter.format(notEnoughMoneyAmount / 100)}
|
Не хватает {currencyFormatter.format(Math.trunc(notEnoughMoneyAmount) / 100)}
|
||||||
</Alert>
|
</Alert>
|
||||||
)}
|
)}
|
||||||
<Button
|
<Button
|
||||||
|
@ -114,9 +114,9 @@ function TariffPage() {
|
|||||||
price={
|
price={
|
||||||
<>
|
<>
|
||||||
{priceBeforeDiscounts !== priceAfterDiscounts && (
|
{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>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user