Browse Source

Bugfix/account details dialog on allocations page (#6984)

Fixes #6984
pull/6988/head
Parman Mohammadalizadeh 4 days ago
parent
commit
6943dfd398
  1. 2
      libs/common/src/lib/interfaces/asset-profile-identifier.interface.ts
  2. 7
      libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts

2
libs/common/src/lib/interfaces/asset-profile-identifier.interface.ts

@ -1,6 +1,6 @@
import { DataSource } from '@prisma/client'; import { DataSource } from '@prisma/client';
export interface AssetProfileIdentifier { export interface AssetProfileIdentifier {
dataSource: DataSource; dataSource?: DataSource;
symbol: string; symbol: string;
} }

7
libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts

@ -357,12 +357,9 @@ export class GfPortfolioProportionChartComponent
try { try {
const dataIndex = activeElements[0].index; const dataIndex = activeElements[0].index;
const symbol = chart.data.labels?.[dataIndex] as string; const symbol = chart.data.labels?.[dataIndex] as string;
const dataSource = this.data[symbol]?.dataSource;
const dataSource = this.data[symbol].dataSource; this.proportionChartClicked.emit({ dataSource, symbol });
if (dataSource) {
this.proportionChartClicked.emit({ dataSource, symbol });
}
} catch {} } catch {}
}, },
onHover: (event, chartElement) => { onHover: (event, chartElement) => {

Loading…
Cancel
Save