Browse Source

Fix issue when opening asset profile

pull/7846/head
Thomas Kaul 1 month ago
parent
commit
226852886e
  1. 2
      libs/ui/src/lib/benchmark/benchmark-detail-dialog/benchmark-detail-dialog.component.ts
  2. 2
      libs/ui/src/lib/benchmark/benchmark-detail-dialog/benchmark-detail-dialog.html

2
libs/ui/src/lib/benchmark/benchmark-detail-dialog/benchmark-detail-dialog.component.ts

@ -44,7 +44,7 @@ import { BenchmarkDetailDialogParams } from './interfaces/interfaces';
templateUrl: 'benchmark-detail-dialog.html' templateUrl: 'benchmark-detail-dialog.html'
}) })
export class GfBenchmarkDetailDialogComponent implements OnInit { export class GfBenchmarkDetailDialogComponent implements OnInit {
public assetProfile: AdminMarketDataDetails['assetProfile']; public assetProfile?: AdminMarketDataDetails['assetProfile'];
public historicalDataItems: LineChartItem[]; public historicalDataItems: LineChartItem[];
public isLoading = true; public isLoading = true;
public value: number; public value: number;

2
libs/ui/src/lib/benchmark/benchmark-detail-dialog/benchmark-detail-dialog.html

@ -1,7 +1,7 @@
<gf-dialog-header <gf-dialog-header
position="center" position="center"
[deviceType]="data.deviceType" [deviceType]="data.deviceType"
[title]="assetProfile.name ?? assetProfile.symbol ?? ''" [title]="assetProfile?.name ?? assetProfile?.symbol ?? ''"
(closeButtonClicked)="onClose()" (closeButtonClicked)="onClose()"
/> />

Loading…
Cancel
Save