DCA redraw hacks
This commit is contained in:
@@ -272,7 +272,7 @@ export function allocationText(weight, amount, symbol) {
|
||||
const hasWeight = weight!==null && weight!==undefined
|
||||
if (hasWeight)
|
||||
text += `${(weight * 100).toFixed(1)}%`
|
||||
const hasAmount = amount!==null && amount!==undefined
|
||||
const hasAmount = amount!==null && amount!==undefined && amount > 0
|
||||
const hasSymbol = symbol!==null && symbol!==undefined
|
||||
if (hasAmount && hasSymbol) {
|
||||
if (hasWeight)
|
||||
@@ -284,6 +284,4 @@ export function allocationText(weight, amount, symbol) {
|
||||
|
||||
export function deleteBuilder(order, builder) {
|
||||
order.builders = order.builders.filter((b) => b !== builder)
|
||||
// if (props.deleteShapes) // todo is this redundant?
|
||||
// props.deleteShapes()
|
||||
}
|
||||
Reference in New Issue
Block a user