Browse Source
Bugfix/missing performance chart in presenter view (#3181)
* Fix missing performance chart in presenter view
* Update changelog
pull/3185/head
Thomas Kaul
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
8 additions and
1 deletions
-
CHANGELOG.md
-
apps/api/src/app/portfolio/portfolio.controller.ts
-
apps/client/src/app/components/home-overview/home-overview.component.ts
|
|
@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
- Upgraded `angular` from version `17.1.3` to `17.2.4` |
|
|
|
- Upgraded `Nx` from version `18.0.4` to `18.1.2` |
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
- Fixed the missing portfolio performance chart in the _Presenter View_ / _Zen Mode_ |
|
|
|
|
|
|
|
## 2.65.0 - 2024-03-19 |
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
@ -418,6 +418,7 @@ export class PortfolioController { |
|
|
|
({ |
|
|
|
date, |
|
|
|
netPerformanceInPercentage, |
|
|
|
netPerformanceInPercentageWithCurrencyEffect, |
|
|
|
netWorth, |
|
|
|
totalInvestment, |
|
|
|
value |
|
|
@ -425,6 +426,7 @@ export class PortfolioController { |
|
|
|
return { |
|
|
|
date, |
|
|
|
netPerformanceInPercentage, |
|
|
|
netPerformanceInPercentageWithCurrencyEffect, |
|
|
|
netWorthInPercentage: |
|
|
|
performanceInformation.performance.currentNetWorth === 0 |
|
|
|
? 0 |
|
|
|
|
|
@ -124,7 +124,6 @@ export class HomeOverviewComponent implements OnDestroy, OnInit { |
|
|
|
.subscribe(({ chart, errors, performance }) => { |
|
|
|
this.errors = errors; |
|
|
|
this.performance = performance; |
|
|
|
this.isLoadingPerformance = false; |
|
|
|
|
|
|
|
this.historicalDataItems = chart.map( |
|
|
|
({ date, netPerformanceInPercentageWithCurrencyEffect }) => { |
|
|
@ -135,6 +134,8 @@ export class HomeOverviewComponent implements OnDestroy, OnInit { |
|
|
|
} |
|
|
|
); |
|
|
|
|
|
|
|
this.isLoadingPerformance = false; |
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
|
}); |
|
|
|
|
|
|
|