Bugfix/fix holdings for basic users (#1064)

* Fix holdings for basic users

* Update changelog
This commit is contained in:
Thomas Kaul
2022-07-07 21:06:12 +02:00
committed by GitHub
parent 8897f32bc5
commit 30835ced88
5 changed files with 28 additions and 15 deletions

View File

@@ -205,7 +205,7 @@ export class PortfolioProportionChartComponent
chartDataSorted.forEach(([, item]) => {
let lightnessRatio = 0.2;
Object.keys(item.subCategory).forEach((subCategory) => {
Object.keys(item.subCategory ?? {}).forEach((subCategory) => {
backgroundColorSubCategory.push(
Color(item.color).lighten(lightnessRatio).hex()
);