Bugfix/fix holdings for basic users (#1064)
* Fix holdings for basic users * Update changelog
This commit is contained in:
@@ -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()
|
||||
);
|
||||
|
Reference in New Issue
Block a user