From 2b988eeeecd178e2ef7863f1803b1689f91541a8 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 26 Apr 2026 08:58:12 +0200 Subject: [PATCH] Bugfix/fix cash label in holdings table (#6783) * Fix cash label (assetSubClassLabel) * Update changelog --- CHANGELOG.md | 5 +++++ .../holdings-table/holdings-table.component.html | 2 +- libs/ui/src/lib/services/data.service.ts | 16 ++++++++++------ 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53d484f9c..e41fa319c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Improved the styling of buttons and input fields across various components - Upgraded `prettier` from version `3.8.2` to `3.8.3` +### Fixed + +- Fixed the cash label in the holdings table of the portfolio holdings page +- Fixed the cash label in the holdings table of the public page + ## 3.0.0 - 2026-04-23 ### Added diff --git a/libs/ui/src/lib/holdings-table/holdings-table.component.html b/libs/ui/src/lib/holdings-table/holdings-table.component.html index 3bb387ae4..dfb39ec8a 100644 --- a/libs/ui/src/lib/holdings-table/holdings-table.component.html +++ b/libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -26,7 +26,7 @@
{{ element.name }} @if (element.name === element.symbol) { - ({{ element.assetSubClassLabel }}) + ({{ element.assetProfile.assetSubClassLabel }}) }
diff --git a/libs/ui/src/lib/services/data.service.ts b/libs/ui/src/lib/services/data.service.ts index 7f2dac0b1..44cef1aed 100644 --- a/libs/ui/src/lib/services/data.service.ts +++ b/libs/ui/src/lib/services/data.service.ts @@ -610,13 +610,11 @@ export class DataService { map((response) => { if (response.holdings) { for (const symbol of Object.keys(response.holdings)) { - response.holdings[symbol].assetClassLabel = translate( - response.holdings[symbol].assetClass - ); + response.holdings[symbol].assetProfile.assetClassLabel = + translate(response.holdings[symbol].assetProfile.assetClass); - response.holdings[symbol].assetSubClassLabel = translate( - response.holdings[symbol].assetSubClass - ); + response.holdings[symbol].assetProfile.assetSubClassLabel = + translate(response.holdings[symbol].assetProfile.assetSubClass); response.holdings[symbol].dateOfFirstActivity = response.holdings[ symbol @@ -699,6 +697,12 @@ export class DataService { map((response) => { if (response.holdings) { for (const symbol of Object.keys(response.holdings)) { + response.holdings[symbol].assetProfile.assetClassLabel = + translate(response.holdings[symbol].assetProfile.assetClass); + + response.holdings[symbol].assetProfile.assetSubClassLabel = + translate(response.holdings[symbol].assetProfile.assetSubClass); + response.holdings[symbol].valueInBaseCurrency = isNumber( response.holdings[symbol].valueInBaseCurrency )