Browse Source

Bugfix/fix editing of emergency fund (#2220)

* Fix editing of emergency fund

* Update changelog
pull/2221/head^2
Thomas Kaul 2 years ago
committed by GitHub
parent
commit
09e95ddcee
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      CHANGELOG.md
  2. 2
      apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts

4
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 - 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 ## 1.298.0 - 2023-08-06
### Changed ### Changed

2
apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts

@ -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() ?? '0' this.summary.emergencyFund?.total?.toString() ?? '0'
); );
const emergencyFund = parseFloat(emergencyFundInput?.trim()); const emergencyFund = parseFloat(emergencyFundInput?.trim());

Loading…
Cancel
Save