fix(admin): resolve TS(2362) operand type in buyPrice margin calculation
Deploy Canina / deploy (push) Successful in 27s
Deploy Canina / deploy (push) Successful in 27s
This commit is contained in:
1 parent
75b9d55a24
commit
2a31a9f8e4
1 file changed
+1
-1
@@ -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 !== '') {
|
||||
|
||||
Reference in new issue
Block a user