Browse Source

Bugfix/fix broken allocation charts in presenter view

pull/6689/head
David Requeno 2 months ago
committed by Thomas Kaul
parent
commit
4957018cae
  1. 6
      apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts

6
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;

Loading…
Cancel
Save