Refactor value to valueInBaseCurrency (#2164)

pull/2165/head
Thomas Kaul 1 year ago committed by GitHub
parent bdf72164b1
commit d5b3c52602
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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();

Loading…
Cancel
Save