Browse Source

Improve comment

pull/3393/head
Reto Kaul 1 year ago
parent
commit
c3ec220502
  1. 2
      apps/api/src/app/portfolio/calculator/twr/portfolio-calculator.ts

2
apps/api/src/app/portfolio/calculator/twr/portfolio-calculator.ts

@ -927,7 +927,7 @@ export class TWRPortfolioCalculator extends PortfolioCalculator {
]?.minus( ]?.minus(
// If the date range is 'max', take 0 as a start value. Otherwise, // If the date range is 'max', take 0 as a start value. Otherwise,
// the value of the end of the day of the start date is taken which // the value of the end of the day of the start date is taken which
// can differ. // differs from the buying price.
dateRange === 'max' dateRange === 'max'
? new Big(0) ? new Big(0)
: (netPerformanceValuesWithCurrencyEffect[ : (netPerformanceValuesWithCurrencyEffect[

Loading…
Cancel
Save