Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Task/widen input types in investment chart component (#7966)

Kenrick Tandriancdeff7e58840
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 43ac5ff99b..8250133eb2 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
@@ -56,13 +56,13 @@ export class GfInvestmentChartComponent implements OnChanges, OnDestroy {
@Input() public benchmarkDataItems: InvestmentItem[] = [];
@Input() public benchmarkDataLabel = '';
@Input() public colorScheme: ColorScheme;
- @Input() public currency: string;
+ @Input() public currency?: string;
@Input() public groupBy: GroupBy;
@Input() public historicalDataItems: LineChartItem[] = [];
- @Input() public isInPercentage = false;
+ @Input() public isInPercentage?: boolean = false;
@Input() public isLoading = false;
- @Input() public locale = getLocale();
- @Input() public savingsRate = 0;
+ @Input() public locale?: string = getLocale();
+ @Input() public savingsRate?: number = 0;
private readonly chartCanvas =
viewChild.required<ElementRef<HTMLCanvasElement>>('chartCanvas');