price handling fixes affecting orderbuild, pairprice, ordershapes, etc
This commit is contained in:
@@ -42,7 +42,7 @@ export function allocationText(weight, amount, symbol, separator = ' ') {
|
||||
const hasAmount = amount !== null && amount !== undefined && amount > 0
|
||||
if (hasAmount)
|
||||
amount = Number(amount)
|
||||
const hasWeight = weight !== null && weight !== undefined
|
||||
const hasWeight = weight !== null && weight !== undefined && weight !== 1
|
||||
if (hasWeight)
|
||||
weight = Number(weight)
|
||||
let text = ''
|
||||
|
||||
Reference in New Issue
Block a user