diff --git a/CHANGELOG.md b/CHANGELOG.md index 07002a2d1..1fc6c10cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Prefilled the form in the account balance management with the current cash balance +- Removed precious metals (Commodities) from the analysis data by continents, countries, sectors and markets ## 3.8.0 - 2026-06-07 diff --git a/apps/api/src/app/portfolio/portfolio.service.ts b/apps/api/src/app/portfolio/portfolio.service.ts index 4feb0f77a..1fab002f3 100644 --- a/apps/api/src/app/portfolio/portfolio.service.ts +++ b/apps/api/src/app/portfolio/portfolio.service.ts @@ -1453,7 +1453,10 @@ export class PortfolioService { for (const [, position] of Object.entries(holdings)) { const value = position.valueInBaseCurrency; - if (position.assetProfile.assetClass !== AssetClass.LIQUIDITY) { + if ( + position.assetProfile.assetClass !== AssetClass.LIQUIDITY && + position.assetProfile.assetSubClass !== AssetClass.COMMODITY + ) { if (position.assetProfile.countries.length > 0) { markets.developedMarkets.valueInBaseCurrency += position.markets.developedMarkets * value; diff --git a/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts b/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts index d0eb3788b..8cb2c7ee6 100644 --- a/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts +++ b/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts @@ -348,8 +348,11 @@ export class GfAllocationsPageComponent implements OnInit { name: position.assetProfile.name }; - if (position.assetProfile.assetClass !== AssetClass.LIQUIDITY) { - // Prepare analysis data by continents, countries, holdings and sectors except for liquidity + if ( + position.assetProfile.assetClass !== AssetClass.LIQUIDITY && + position.assetProfile.assetSubClass !== AssetClass.COMMODITY + ) { + // Prepare analysis data by continents, countries, holdings and sectors except for liquidity and commodity if (position.assetProfile.countries.length > 0) { for (const country of position.assetProfile.countries) {