allocation text fix; props&points suppressed during drag
This commit is contained in:
@@ -240,6 +240,8 @@ export function weightColors(weights, color) {
|
||||
}
|
||||
|
||||
export function allocationText(weight, amount, symbol) {
|
||||
amount = Number(amount)
|
||||
weight = Number(weight)
|
||||
let text = ''
|
||||
const hasWeight = weight!==null && weight!==undefined
|
||||
if (hasWeight)
|
||||
@@ -249,7 +251,7 @@ export function allocationText(weight, amount, symbol) {
|
||||
if (hasAmount && hasSymbol) {
|
||||
if (hasWeight)
|
||||
text += ' = '
|
||||
text += `${amount.toLocaleString('fullwide')} ${symbol}`
|
||||
text += `${amount.toPrecision(3).toLocaleString('fullwide')} ${symbol}`
|
||||
}
|
||||
return text
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user