Browse Source
Bugfix/dashboard currencies (#260 )
* filter list of orders only for relevant orders
* Update changelog
Co-authored-by: Valentin Zickner <github@zickner.ch>
Co-authored-by: Thomas <4159106+dtslvr@users.noreply.github.com>
pull/262/head
Valentin Zickner
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
9 additions and
1 deletions
CHANGELOG.md
apps/api/src/app/portfolio/portfolio.service.ts
@ -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/ ),
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 ).
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
## 1.33.0 - 05.08.2021
### Fixed
### Fixed
@ -258,7 +258,9 @@ export class PortfolioService {
) : Promise < PortfolioPositionDetail > {
) : Promise < PortfolioPositionDetail > {
const userId = await this . getUserId ( aImpersonationId ) ;
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 ) {
if ( orders . length <= 0 ) {
return {
return {