From 9cbf789c22fe8e956296bc751a30bfc412a6c5f6 Mon Sep 17 00:00:00 2001
From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com>
Date: Tue, 7 Sep 2021 22:11:38 +0200
Subject: [PATCH] Bugfix/fix values in position detail dialog (#351)
* Nullify netPerformance
* Introduce precision
* Update changelog
---
CHANGELOG.md | 10 ++++++++++
.../src/app/portfolio/portfolio.controller.ts | 1 +
.../position-detail-dialog.html | 5 ++---
libs/ui/.eslintrc.json | 4 ++--
.../ui/src/lib/value/value.component.stories.ts | 17 ++++++++---------
libs/ui/src/lib/value/value.component.ts | 10 ++++++----
6 files changed, 29 insertions(+), 18 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 85bc85855..4936a5b71 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,16 @@ 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
+
+### Added
+
+- Added the attribute `precision` in the value component
+
+### Fixed
+
+- Hid the performance in the _Presenter View_
+
## 1.47.1 - 06.09.2021
### Fixed
diff --git a/apps/api/src/app/portfolio/portfolio.controller.ts b/apps/api/src/app/portfolio/portfolio.controller.ts
index 34e7d5376..e2cf73614 100644
--- a/apps/api/src/app/portfolio/portfolio.controller.ts
+++ b/apps/api/src/app/portfolio/portfolio.controller.ts
@@ -276,6 +276,7 @@ export class PortfolioController {
position = nullifyValuesInObject(position, [
'grossPerformance',
'investment',
+ 'netPerformance',
'quantity'
]);
}
diff --git a/apps/client/src/app/components/position/position-detail-dialog/position-detail-dialog.html b/apps/client/src/app/components/position/position-detail-dialog/position-detail-dialog.html
index 1847676f4..939f0f4dc 100644
--- a/apps/client/src/app/components/position/position-detail-dialog/position-detail-dialog.html
+++ b/apps/client/src/app/components/position/position-detail-dialog/position-detail-dialog.html
@@ -80,7 +80,8 @@