From 641fe4e8f47fb79b17fef78980177121cca2070f Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 18 Sep 2021 19:20:14 +0200 Subject: [PATCH] Bugfix/net performance in positions endpoint (#377) * Nullify net performance * Update changelog --- CHANGELOG.md | 2 +- apps/api/src/app/portfolio/portfolio.controller.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 84d032e79..442ba1512 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -- Hid the net performance in the _Presenter View_ (portfolio summary tab on the home page) +- Hid the net performance in the _Presenter View_ (portfolio holdings and summary tab on the home page) - Hid the sign if the performance is zero in the value component ## 1.53.0 - 13.09.2021 diff --git a/apps/api/src/app/portfolio/portfolio.controller.ts b/apps/api/src/app/portfolio/portfolio.controller.ts index 0aaf383c3..97dd4d008 100644 --- a/apps/api/src/app/portfolio/portfolio.controller.ts +++ b/apps/api/src/app/portfolio/portfolio.controller.ts @@ -223,6 +223,7 @@ export class PortfolioController { return nullifyValuesInObject(position, [ 'grossPerformance', 'investment', + 'netPerformance', 'quantity' ]); });