Task/refactor deprecated currency to asset profile in public controller (#6775)

Refactor deprecated currency to asset profile
pull/6837/merge
Thomas Kaul 18 hours ago committed by GitHub
parent 1cc1e63b3b
commit fb5716c8a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save