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 3 years ago committed by GitHub
parent 3723a5c725
commit ba3b4564cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
### Fixed

@ -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 {

Loading…
Cancel
Save