|
|
|
@ -151,11 +151,11 @@ export class PublicController { |
|
|
|
}; |
|
|
|
|
|
|
|
const totalValue = getSum( |
|
|
|
Object.values(holdings).map(({ currency, marketPrice, quantity }) => { |
|
|
|
Object.values(holdings).map(({ assetProfile, marketPrice, quantity }) => { |
|
|
|
return new Big( |
|
|
|
this.exchangeRateDataService.toCurrency( |
|
|
|
quantity * marketPrice, |
|
|
|
currency, |
|
|
|
assetProfile.currency, |
|
|
|
this.request.user?.settings?.settings.baseCurrency ?? |
|
|
|
DEFAULT_CURRENCY |
|
|
|
) |
|
|
|
|