Fix missing currency conversion

This commit is contained in:
Thomas 2021-07-31 23:57:00 +02:00
parent 21570cca19
commit a3a98c68a5

View File

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