Browse Source

Task/refactor double ternary in portfolio proportion chart (#7785)

Refactoring
pull/7788/head^2
Lyndros 6 days ago
committed by GitHub
parent
commit
0910d6d209
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 12
      libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts

12
libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts

@ -397,11 +397,13 @@ export class GfPortfolioProportionChartComponent
context.dataIndex
] as string;
return value > 0
? isUUID(symbol)
? (this.data[symbol]?.name ?? symbol)
: symbol
: '';
if (value <= 0) {
return '';
}
return isUUID(symbol)
? (this.data[symbol]?.name ?? symbol)
: symbol;
},
offset: 8
}

Loading…
Cancel
Save