Bugfix/missing performance chart in presenter view (#3181)
* Fix missing performance chart in presenter view * Update changelog
This commit is contained in:
parent
3f7d6b25c7
commit
87bf8df1c3
@ -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 `angular` from version `17.1.3` to `17.2.4`
|
||||||
- Upgraded `Nx` from version `18.0.4` to `18.1.2`
|
- 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
|
## 2.65.0 - 2024-03-19
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -418,6 +418,7 @@ export class PortfolioController {
|
|||||||
({
|
({
|
||||||
date,
|
date,
|
||||||
netPerformanceInPercentage,
|
netPerformanceInPercentage,
|
||||||
|
netPerformanceInPercentageWithCurrencyEffect,
|
||||||
netWorth,
|
netWorth,
|
||||||
totalInvestment,
|
totalInvestment,
|
||||||
value
|
value
|
||||||
@ -425,6 +426,7 @@ export class PortfolioController {
|
|||||||
return {
|
return {
|
||||||
date,
|
date,
|
||||||
netPerformanceInPercentage,
|
netPerformanceInPercentage,
|
||||||
|
netPerformanceInPercentageWithCurrencyEffect,
|
||||||
netWorthInPercentage:
|
netWorthInPercentage:
|
||||||
performanceInformation.performance.currentNetWorth === 0
|
performanceInformation.performance.currentNetWorth === 0
|
||||||
? 0
|
? 0
|
||||||
|
@ -124,7 +124,6 @@ export class HomeOverviewComponent implements OnDestroy, OnInit {
|
|||||||
.subscribe(({ chart, errors, performance }) => {
|
.subscribe(({ chart, errors, performance }) => {
|
||||||
this.errors = errors;
|
this.errors = errors;
|
||||||
this.performance = performance;
|
this.performance = performance;
|
||||||
this.isLoadingPerformance = false;
|
|
||||||
|
|
||||||
this.historicalDataItems = chart.map(
|
this.historicalDataItems = chart.map(
|
||||||
({ date, netPerformanceInPercentageWithCurrencyEffect }) => {
|
({ date, netPerformanceInPercentageWithCurrencyEffect }) => {
|
||||||
@ -135,6 +134,8 @@ export class HomeOverviewComponent implements OnDestroy, OnInit {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
this.isLoadingPerformance = false;
|
||||||
|
|
||||||
this.changeDetectorRef.markForCheck();
|
this.changeDetectorRef.markForCheck();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user