Browse Source
Bugfix/net performance in positions endpoint (#377)
* Nullify net performance
* Update changelog
pull/378/head
Thomas Kaul
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
1 deletions
-
CHANGELOG.md
-
apps/api/src/app/portfolio/portfolio.controller.ts
|
|
@ -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 |
|
|
|
|
|
@ -223,6 +223,7 @@ export class PortfolioController { |
|
|
|
return nullifyValuesInObject(position, [ |
|
|
|
'grossPerformance', |
|
|
|
'investment', |
|
|
|
'netPerformance', |
|
|
|
'quantity' |
|
|
|
]); |
|
|
|
}); |
|
|
|