Fix group by month/year not working for YTD (#1598)
* Set time to 00:00:00 when getting current timestamp * Update changelog
This commit is contained in:
@@ -196,7 +196,10 @@ export class InvestmentChartComponent implements OnChanges, OnDestroy {
|
||||
this.getTooltipPluginConfiguration()
|
||||
);
|
||||
this.chart.options.scales.x.min = this.daysInMarket
|
||||
? subDays(new Date(), this.daysInMarket).toISOString()
|
||||
? subDays(
|
||||
new Date().setHours(0, 0, 0, 0),
|
||||
this.daysInMarket
|
||||
).toISOString()
|
||||
: undefined;
|
||||
|
||||
if (
|
||||
|
Reference in New Issue
Block a user