diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a75a6a32..0e690376a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Optimized the activities import by allowing a different currency than the asset's official one +### Fixed + +- Fixed the editing of the emergency fund + ## 1.298.0 - 2023-08-06 ### Changed 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 518aa0a64..337fc5211 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() ?? '0' + this.summary.emergencyFund?.total?.toString() ?? '0' ); const emergencyFund = parseFloat(emergencyFundInput?.trim());