Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Bugfix/fix projected total amount in fire calculator (#825)
Thomas Kaul70723f8d5f9e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex c46357392f..fbc0cf20a5 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).+## Unreleased++### Fixed++- Fixed an issue with the calculation of the projected total amount in the _FIRE_ calculator+## 1.135.0 - 10.04.2022### Addeddiff --git a/libs/ui/src/lib/fire-calculator/fire-calculator.component.ts b/libs/ui/src/lib/fire-calculator/fire-calculator.component.tsindex 13fa76d2de..50132f4f5e 100644--- a/libs/ui/src/lib/fire-calculator/fire-calculator.component.ts+++ b/libs/ui/src/lib/fire-calculator/fire-calculator.component.ts@@ -234,7 +234,7 @@ export class FireCalculatorComponentdatasetPrincipal.data.push(principal.toNumber());datasetInterest.data.push(interest.toNumber());- if (period === t - 1) {+ if (period === t) {this.projectedTotalAmount = totalAmount.toNumber();}}