Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Bugfix/dashboard currencies (#260)
Valentin Zicknerba3b4564cd0e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5c7a103aba..5e3e21ee6e 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 currency conversion of the market price in the position detail dialog+## 1.33.0 - 05.08.2021### Fixeddiff --git a/apps/api/src/app/portfolio/portfolio.service.ts b/apps/api/src/app/portfolio/portfolio.service.tsindex 9de48ead4c..5bb2a7114b 100644--- a/apps/api/src/app/portfolio/portfolio.service.ts+++ b/apps/api/src/app/portfolio/portfolio.service.ts@@ -258,7 +258,9 @@ export class PortfolioService {): Promise<PortfolioPositionDetail> {const userId = await this.getUserId(aImpersonationId);- const orders = await this.getOrders(userId);+ const orders = (await this.getOrders(userId)).filter(+ (order) => order.symbol === aSymbol+ );if (orders.length <= 0) {return {