|
@ -260,9 +260,10 @@ export class BenchmarkService { |
|
|
marketDataItem.date |
|
|
marketDataItem.date |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
const exchangeRateFactor = isNumber(exchangeRate) |
|
|
const exchangeRateFactor = |
|
|
? exchangeRate / exchangeRateAtStartDate |
|
|
isNumber(exchangeRateAtStartDate) && isNumber(exchangeRate) |
|
|
: 1; |
|
|
? exchangeRate / exchangeRateAtStartDate |
|
|
|
|
|
: 1; |
|
|
|
|
|
|
|
|
marketData.push({ |
|
|
marketData.push({ |
|
|
date: format(marketDataItem.date, DATE_FORMAT), |
|
|
date: format(marketDataItem.date, DATE_FORMAT), |
|
@ -284,9 +285,10 @@ export class BenchmarkService { |
|
|
new Date() |
|
|
new Date() |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
const exchangeRateFactor = isNumber(exchangeRate) |
|
|
const exchangeRateFactor = |
|
|
? exchangeRate / exchangeRateAtStartDate |
|
|
isNumber(exchangeRateAtStartDate) && isNumber(exchangeRate) |
|
|
: 1; |
|
|
? exchangeRate / exchangeRateAtStartDate |
|
|
|
|
|
: 1; |
|
|
|
|
|
|
|
|
marketData.push({ |
|
|
marketData.push({ |
|
|
date: format(new Date(), DATE_FORMAT), |
|
|
date: format(new Date(), DATE_FORMAT), |
|
|