fix(admin): resolve TS(2362) operand type in buyPrice margin calculation
Deploy Canina / deploy (push) Successful in 27s

This commit is contained in:
parsa aghaei committed 2026-08-24 17:09:07 +03:30
1 parent 75b9d55a24
commit 2a31a9f8e4
1 file changed
+1 -1
+1 -1
View File
@@ -1010,7 +1010,7 @@ export default function Products() {
if (bPrice && pMargin !== '') {
pPrice = Math.round(Number(bPrice) * (1 + Number(pMargin) / 100));
} else if (bPrice && pPrice) {
pMargin = Math.round(((pPrice - Number(bPrice)) / Number(bPrice)) * 100);
pMargin = Math.round(((Number(pPrice) - Number(bPrice)) / Number(bPrice)) * 100);
}
if (bPrice && wMargin !== '') {