From 4957018cae4cc19b17070f4f75625ce900f6101d Mon Sep 17 00:00:00 2001 From: David Requeno Date: Sun, 5 Apr 2026 21:27:38 -0600 Subject: [PATCH] Bugfix/fix broken allocation charts in presenter view --- .../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 367716d2d..e91381092 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 @@ -310,7 +310,7 @@ export class GfAllocationsPageComponent implements OnInit { ] of Object.entries(this.portfolioDetails.accounts)) { let value = 0; - if (this.hasImpersonationId) { + if (this.hasImpersonationId || this.user?.settings?.isRestrictedView) { value = valueInPercentage; } else { value = valueInBaseCurrency; @@ -328,7 +328,7 @@ export class GfAllocationsPageComponent implements OnInit { )) { let value = 0; - if (this.hasImpersonationId) { + if (this.hasImpersonationId || this.user?.settings?.isRestrictedView) { value = position.allocationInPercentage; } else { value = position.valueInBaseCurrency; @@ -491,7 +491,7 @@ export class GfAllocationsPageComponent implements OnInit { ] of Object.entries(this.portfolioDetails.platforms)) { let value = 0; - if (this.hasImpersonationId) { + if (this.hasImpersonationId || this.user?.settings?.isRestrictedView) { value = valueInPercentage; } else { value = valueInBaseCurrency;