Browse Source

fix(client): resolve type errors

pull/7293/head
KenTandrian 5 days ago
parent
commit
ae729fa8f9
  1. 4
      apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts

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

Loading…
Cancel
Save