Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Bugfix/asset class chart on allocations page (#6979)

Thomas Kaul8a93f1f3013a
diff --git a/libs/ui/src/lib/services/data.service.ts b/libs/ui/src/lib/services/data.service.ts
index 44cef1aedb..2ae07708da 100644
--- a/libs/ui/src/lib/services/data.service.ts
+++ b/libs/ui/src/lib/services/data.service.ts
@@ -556,13 +556,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