Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Release 1.23.1 (#191)
Thomas290e93bbd7b0
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 04197b317c..edbc038042 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).+## 1.23.1 - 03.07.2021++### Fixed++- Fixed the investment chart (drafts)+## 1.23.0 - 03.07.2021### Addeddiff --git a/apps/api/src/models/portfolio.ts b/apps/api/src/models/portfolio.tsindex 4915f00b7a..9540dceb57 100644--- a/apps/api/src/models/portfolio.ts+++ b/apps/api/src/models/portfolio.ts@@ -118,23 +118,19 @@ export class Portfolio implements PortfolioInterface {this.getOrders().filter((order) => order.getIsDraft() === true).forEach((order) => {+ investment += this.exchangeRateDataService.toCurrency(+ order.getTotal(),+ order.getCurrency(),+ this.user.Settings.currency+ );+const portfolioItem = this.portfolioItems.find((item) => {return item.date === order.getDate();});if (portfolioItem) {- portfolioItem.investment += this.exchangeRateDataService.toCurrency(- order.getTotal(),- order.getCurrency(),- this.user.Settings.currency- );+ portfolioItem.investment = investment;} else {- investment += this.exchangeRateDataService.toCurrency(- order.getTotal(),- order.getCurrency(),- this.user.Settings.currency- );-this.portfolioItems.push({investment,date: order.getDate(),diff --git a/package.json b/package.jsonindex 5615799ddf..446347d1ea 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "ghostfolio",- "version": "1.23.0",+ "version": "1.23.1","homepage": "https://ghostfol.io","license": "AGPL-3.0","scripts": {