Browse Source

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

Refactoring
pull/7788/head^2
Lyndros 7 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 context.dataIndex
] as string; ] as string;
return value > 0 if (value <= 0) {
? isUUID(symbol) return '';
? (this.data[symbol]?.name ?? symbol) }
: symbol
: ''; return isUUID(symbol)
? (this.data[symbol]?.name ?? symbol)
: symbol;
}, },
offset: 8 offset: 8
} }

Loading…
Cancel
Save