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, totalInterestWithCurrencyEffect,
totalInvestment, totalInvestment,
totalInvestmentWithCurrencyEffect, totalInvestmentWithCurrencyEffect,
errors: [],
historicalData: [], historicalData: [],
totalLiabilitiesWithCurrencyEffect: new Big(0), totalLiabilitiesWithCurrencyEffect: new Big(0),
totalValuablesWithCurrencyEffect: 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) @Type(() => Big)
currentValueInBaseCurrency: Big; currentValueInBaseCurrency: Big;
errors?: AssetProfileIdentifier[]; errors: AssetProfileIdentifier[];
hasErrors: boolean; hasErrors: boolean;

Loading…
Cancel
Save