|
|
|
@ -2126,11 +2126,11 @@ export class PortfolioService { |
|
|
|
.filter(({ isDraft, type }) => { |
|
|
|
return isDraft === false && type === activityType; |
|
|
|
}) |
|
|
|
.map(({ quantity, SymbolProfile, unitPrice }) => { |
|
|
|
.map(({ currency, quantity, SymbolProfile, unitPrice }) => { |
|
|
|
return new Big( |
|
|
|
this.exchangeRateDataService.toCurrency( |
|
|
|
new Big(quantity).mul(unitPrice).toNumber(), |
|
|
|
SymbolProfile.currency, |
|
|
|
currency ?? SymbolProfile.currency, |
|
|
|
userCurrency |
|
|
|
) |
|
|
|
); |
|
|
|
|