Browse Source

Fix missing currency conversion

pull/239/head
Thomas 4 years ago
parent
commit
a3a98c68a5
  1. 6
      apps/api/src/app/core/current-rate.service.ts

6
apps/api/src/app/core/current-rate.service.ts

@ -80,7 +80,11 @@ export class CurrentRateService {
for (const symbol of symbols) { for (const symbol of symbols) {
result.push({ result.push({
date: today, date: today,
marketPrice: dataResultProvider?.[symbol]?.marketPrice ?? 0, marketPrice: this.exchangeRateDataService.toCurrency(
dataResultProvider?.[symbol]?.marketPrice ?? 0,
dataResultProvider?.[symbol]?.currency,
userCurrency
),
symbol: symbol symbol: symbol
}); });
} }

Loading…
Cancel
Save