From 178166d86b8ce21d70fb4d354779c0d00d4a8d69 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Sun, 8 Aug 2021 19:25:38 +0200 Subject: [PATCH] Extend investment chart by three months (#273) --- .../components/investment-chart/investment-chart.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/app/components/investment-chart/investment-chart.component.ts b/apps/client/src/app/components/investment-chart/investment-chart.component.ts index 796b182ab..a8b99ea48 100644 --- a/apps/client/src/app/components/investment-chart/investment-chart.component.ts +++ b/apps/client/src/app/components/investment-chart/investment-chart.component.ts @@ -73,7 +73,7 @@ export class InvestmentChartComponent implements OnChanges, OnDestroy, OnInit { const lastItem = this.investments[this.investments.length - 1]; this.investments.push({ ...lastItem, - date: addMonths(parseISO(lastItem.date), 3).toISOString() + date: addMonths(new Date(), 3).toISOString() }); }