Thomas Kaul
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
apps/api/src/app/portfolio/portfolio.service.ts
|
|
@ -1408,9 +1408,9 @@ export class PortfolioService { |
|
|
|
|
|
|
|
let valueInBaseCurrencyOfEmergencyFundPositions = new Big(0); |
|
|
|
|
|
|
|
for (const { value } of emergencyFundHoldings) { |
|
|
|
for (const { valueInBaseCurrency } of emergencyFundHoldings) { |
|
|
|
valueInBaseCurrencyOfEmergencyFundPositions = |
|
|
|
valueInBaseCurrencyOfEmergencyFundPositions.plus(value); |
|
|
|
valueInBaseCurrencyOfEmergencyFundPositions.plus(valueInBaseCurrency); |
|
|
|
} |
|
|
|
|
|
|
|
return valueInBaseCurrencyOfEmergencyFundPositions.toNumber(); |
|
|
|