From a3a98c68a567874c3cb56494723cf4b5d4b66822 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Sat, 31 Jul 2021 23:57:00 +0200 Subject: [PATCH] Fix missing currency conversion --- apps/api/src/app/core/current-rate.service.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/api/src/app/core/current-rate.service.ts b/apps/api/src/app/core/current-rate.service.ts index 4ca9ff819..6e7a0e202 100644 --- a/apps/api/src/app/core/current-rate.service.ts +++ b/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 }); }