Browse Source

Merge branch 'main' into bugfix/add-missing-country-mapping-for-korea-in-financial-modeling-prep-service

pull/8096/head
Thomas Kaul 6 days ago
committed by GitHub
parent
commit
a20590a2f3
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 48
      apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts

1
CHANGELOG.md

@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- Fixed the missing first data point in the portfolio evolution chart on the analysis page
- Fixed the missing mapping for Korea in the country weightings of the _Financial Modeling Prep_ service - Fixed the missing mapping for Korea in the country weightings of the _Financial Modeling Prep_ service
## 3.81.0 - 2026-10-07 ## 3.81.0 - 2026-10-07

48
apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts

@ -329,36 +329,30 @@ export class GfAnalysisPageComponent implements OnInit {
this.performanceDataItems = []; this.performanceDataItems = [];
this.performanceDataItemsInPercentage = []; this.performanceDataItemsInPercentage = [];
for (const [ for (const {
index, date,
{ dividendInPercentageWithCurrencyEffect,
date, netPerformanceInPercentageWithCurrencyEffect,
dividendInPercentageWithCurrencyEffect, totalInvestmentValueWithCurrencyEffect,
netPerformanceInPercentageWithCurrencyEffect, valueInPercentage,
totalInvestmentValueWithCurrencyEffect, valueWithCurrencyEffect
valueInPercentage, } of chart ?? []) {
valueWithCurrencyEffect if (totalInvestmentValueWithCurrencyEffect !== undefined) {
this.investments.push({
date,
investment: totalInvestmentValueWithCurrencyEffect
});
} }
] of (chart ?? []).entries()) {
// Ignore first item where value is 0
if (index > 0 || this.user?.settings?.dateRange === 'max') {
if (totalInvestmentValueWithCurrencyEffect !== undefined) {
this.investments.push({
date,
investment: totalInvestmentValueWithCurrencyEffect
});
}
const value = isNumber(valueWithCurrencyEffect) const value = isNumber(valueWithCurrencyEffect)
? valueWithCurrencyEffect ? valueWithCurrencyEffect
: valueInPercentage; : valueInPercentage;
if (isNumber(value)) { if (isNumber(value)) {
this.performanceDataItems.push({ this.performanceDataItems.push({
date, date,
value value
}); });
}
} }
if (isNumber(netPerformanceInPercentageWithCurrencyEffect)) { if (isNumber(netPerformanceInPercentageWithCurrencyEffect)) {

Loading…
Cancel
Save