From 2f05c08767c34ab838c78a39cc9ee38431987294 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Wed, 30 Sep 2026 18:51:50 +0200 Subject: [PATCH] Fix top holdings --- .../portfolio/allocations/allocations-page.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ef23c38fdf..cbdacaa3f1 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 @@ -388,7 +388,7 @@ export class GfAllocationsPageComponent implements OnInit { } = {}; let totalValueExcludingCashPositions = 0; - let totalValueInEtf = 0; + let totalValueInFunds = 0; for (const position of this.portfolioDetails.holdings) { const assetProfileIdentifier = getAssetProfileIdentifier( @@ -464,7 +464,7 @@ export class GfAllocationsPageComponent implements OnInit { } if (position.assetProfile.holdings.length > 0) { - totalValueInEtf += this.holdings[assetProfileIdentifier].value; + totalValueInFunds += this.holdings[assetProfileIdentifier].value; for (const { allocationInPercentage, @@ -592,7 +592,7 @@ export class GfAllocationsPageComponent implements OnInit { return { name, allocationInPercentage: - totalValueInEtf > 0 ? value / totalValueInEtf : 0, + totalValueInFunds > 0 ? value / totalValueInFunds : 0, parents: this.portfolioDetails.holdings .map((holding) => { if (holding.assetProfile.holdings.length > 0) {