From efba7429c1eb00273ccd473a3f4ac74988a9ea76 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Wed, 25 Jan 2023 12:00:52 +0100 Subject: [PATCH] Bugfix/fix click of unknown accounts (#1629) * Check for unknown key * Update changelog --- CHANGELOG.md | 4 ++++ .../pages/portfolio/allocations/allocations-page.component.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5baf9159a..3f57dc3de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Upgraded `Node.js` from version `16` to `18` (`Dockerfile`) +### Fixed + +- Fixed the click of unknown accounts in the portfolio proportion chart component + ## 1.229.0 - 2023-01-21 ### Added diff --git a/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts b/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts index 910629a3e..0dd32bf68 100644 --- a/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts +++ b/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts @@ -357,7 +357,7 @@ export class AllocationsPageComponent implements OnDestroy, OnInit { } public onAccountChartClicked({ symbol }: UniqueAsset) { - if (symbol) { + if (symbol && symbol !== UNKNOWN_KEY) { this.router.navigate([], { queryParams: { accountId: symbol, accountDetailDialog: true } });