Browse Source

Fix exception in portfolio calculator

pull/4113/head
Thomas Kaul 9 months ago
parent
commit
67732395ec
  1. 1
      apps/api/src/app/portfolio/calculator/twr/portfolio-calculator.ts
  2. 2
      libs/common/src/lib/models/portfolio-snapshot.ts

1
apps/api/src/app/portfolio/calculator/twr/portfolio-calculator.ts

@ -101,6 +101,7 @@ export class TWRPortfolioCalculator extends PortfolioCalculator {
totalInterestWithCurrencyEffect,
totalInvestment,
totalInvestmentWithCurrencyEffect,
errors: [],
historicalData: [],
totalLiabilitiesWithCurrencyEffect: new Big(0),
totalValuablesWithCurrencyEffect: new Big(0)

2
libs/common/src/lib/models/portfolio-snapshot.ts

@ -13,7 +13,7 @@ export class PortfolioSnapshot {
@Type(() => Big)
currentValueInBaseCurrency: Big;
errors?: AssetProfileIdentifier[];
errors: AssetProfileIdentifier[];
hasErrors: boolean;

Loading…
Cancel
Save