From 57314d62eebc53fb29d2d24318b6d880aae3bf53 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 7 May 2022 22:33:57 +0200 Subject: [PATCH] Feature/improve allocations page with no filter (#887) * Improve accounts for no filters * Update changelog --- CHANGELOG.md | 1 + apps/api/src/app/portfolio/portfolio.controller.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 250884cd..19381985 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Migrated the asset profile data gathering to the queue design pattern +- Improved the allocations page with no filtering - Harmonized the _No data available_ label in the portfolio proportion chart component ## 1.145.0 - 07.05.2022 diff --git a/apps/api/src/app/portfolio/portfolio.controller.ts b/apps/api/src/app/portfolio/portfolio.controller.ts index 37252b8f..25021492 100644 --- a/apps/api/src/app/portfolio/portfolio.controller.ts +++ b/apps/api/src/app/portfolio/portfolio.controller.ts @@ -183,7 +183,7 @@ export class PortfolioController { return { hasError, - accounts: filters ? {} : accounts, + accounts: filters.length === 0 ? accounts : {}, holdings: isBasicUser ? {} : holdings }; }