fix(admin): resolve TS(2362) operand type in buyPrice margin calculation
All checks were successful
Deploy Canina / deploy (push) Successful in 27s
All checks were successful
Deploy Canina / deploy (push) Successful in 27s
This commit is contained in:
parent
75b9d55a24
commit
2a31a9f8e4
@ -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 !== '') {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user