Bugfix/fix editing of emergency fund (#2220)

* Fix editing of emergency fund

* Update changelog
pull/2221/head^2
Thomas Kaul 10 months ago committed by GitHub
parent 2d003225bc
commit 09e95ddcee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

@ -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());

Loading…
Cancel
Save