Browse Source

Bugfix/fix duplicated tags in position detail dialog (#3224)

* Fix duplicated tags

* Update changelog
pull/3227/head
Thomas Kaul 12 months ago
committed by GitHub
parent
commit
b8533050b0
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      CHANGELOG.md
  2. 4
      apps/api/src/app/portfolio/portfolio.service.ts

4
CHANGELOG.md

@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Improved the usability of the date range support by specific years (`2023`, `2022`, `2021`, etc.) in the assistant (experimental)
- Introduced a factory for the portfolio calculations to support different algorithms in future
### Fixed
- Fixed the duplicated tags in the position detail dialog
## 2.69.0 - 2024-03-30
### Added

4
apps/api/src/app/portfolio/portfolio.service.ts

@ -719,8 +719,6 @@ export class PortfolioService {
{ dataSource: aDataSource, symbol: aSymbol }
]);
tags = uniqBy(tags, 'id');
const portfolioCalculator = this.calculatorFactory.createCalculator({
activities: orders.filter((order) => {
tags = tags.concat(order.tags);
@ -731,6 +729,8 @@ export class PortfolioService {
currency: userCurrency
});
tags = uniqBy(tags, 'id');
const portfolioStart = portfolioCalculator.getStartDate();
const transactionPoints = portfolioCalculator.getTransactionPoints();

Loading…
Cancel
Save