DCA redraw hacks

This commit is contained in:
Tim
2024-04-17 22:18:34 -04:00
parent 45a3d09e2b
commit 1579060024
6 changed files with 248 additions and 58 deletions

View File

@@ -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()
}