fix price format (default oman price)

This commit is contained in:
2026-01-14 22:33:07 +03:00
parent aaef1bc11b
commit 44e2730428
4 changed files with 146 additions and 22 deletions

View File

@@ -7,6 +7,7 @@ import { useTranslation } from "react-i18next";
import { useAppSelector } from "redux/hooks";
import { Variant } from "utils/types/appTypes";
import styles from "../product.module.css";
import { formatPriceUi } from "utils/helpers";
export default function Variants({
selectedVariants,
@@ -169,7 +170,7 @@ export default function Variants({
value: value,
label: value,
price: variant
? `+${Number(variant.price).toFixed(2)}`
? `+${formatPriceUi(variant.price, 3)}`
: "",
};
})}