diff --git a/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts b/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts index 3d2760202..f4ffde9cb 100644 --- a/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts +++ b/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts @@ -47,7 +47,7 @@ export class GfPortfolioSummaryComponent implements OnChanges { ); public precision = 2; - public timeInMarket: string; + public timeInMarket: string | undefined; public get buyingPowerPercentage() { return this.summary?.totalValueInBaseCurrency @@ -77,7 +77,7 @@ export class GfPortfolioSummaryComponent implements OnChanges { if (this.summary) { if ( this.deviceType === 'mobile' && - this.summary.totalValueInBaseCurrency >= + (this.summary.totalValueInBaseCurrency ?? 0) >= NUMERICAL_PRECISION_THRESHOLD_6_FIGURES ) { this.precision = 0;