Handle impersonation mode with guard (#1714)

pull/1722/head
Thomas Kaul 2 years ago committed by GitHub
parent dad6bf7095
commit 0f4bf529d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -50,7 +50,7 @@ export class PortfolioSummaryComponent implements OnChanges, OnInit {
public onEditEmergencyFund() { public onEditEmergencyFund() {
const emergencyFundInput = prompt( const emergencyFundInput = prompt(
$localize`Please enter the amount of your emergency fund:`, $localize`Please enter the amount of your emergency fund:`,
this.summary.emergencyFund.toString() this.summary.emergencyFund?.toString() ?? '0'
); );
const emergencyFund = parseFloat(emergencyFundInput?.trim()); const emergencyFund = parseFloat(emergencyFundInput?.trim());

Loading…
Cancel
Save