From 0f4bf529d87d5e4f5ad26c85594113f7d8b59e30 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 18 Feb 2023 14:59:38 +0100 Subject: [PATCH] Handle impersonation mode with guard (#1714) --- .../components/portfolio-summary/portfolio-summary.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts b/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts index 7b1bce9ac..518aa0a64 100644 --- a/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts +++ b/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts @@ -50,7 +50,7 @@ export class PortfolioSummaryComponent implements OnChanges, OnInit { public onEditEmergencyFund() { const emergencyFundInput = prompt( $localize`Please enter the amount of your emergency fund:`, - this.summary.emergencyFund.toString() + this.summary.emergencyFund?.toString() ?? '0' ); const emergencyFund = parseFloat(emergencyFundInput?.trim());