Browse Source
Task/refactor double ternary in portfolio proportion chart (#7785)
Refactoring
pull/7788/head^2
Lyndros
7 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
7 additions and
5 deletions
-
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 |
|
|
} |
|
|
} |
|
|
|