Browse Source

Fix missing currency conversion

pull/239/head
Thomas 3 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) {
result.push({
date: today,
marketPrice: dataResultProvider?.[symbol]?.marketPrice ?? 0,
marketPrice: this.exchangeRateDataService.toCurrency(
dataResultProvider?.[symbol]?.marketPrice ?? 0,
dataResultProvider?.[symbol]?.currency,
userCurrency
),
symbol: symbol
});
}

Loading…
Cancel
Save