remove unnecessary if condition
This commit is contained in:
parent
ea66081073
commit
3b7e0a0106
@ -152,10 +152,7 @@ export class PortfolioCalculator {
|
||||
}
|
||||
}
|
||||
|
||||
const yesterday = resetHours(subDays(today, 1));
|
||||
if (dates.indexOf(yesterday) === -1) {
|
||||
dates.push(yesterday);
|
||||
}
|
||||
dates.push(resetHours(subDays(today, 1)));
|
||||
dates.push(resetHours(today));
|
||||
|
||||
const marketSymbols = await this.currentRateService.getValues({
|
||||
|
Loading…
x
Reference in New Issue
Block a user