diff --git a/CHANGELOG.md b/CHANGELOG.md index 9194735cf..718fc2d4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added a benchmark comparator (experimental) +### Fixed + +- Improved the asset profile details dialog for assets without a (first) activity in the admin control panel + ## 1.187.0 - 03.09.2022 ### Added diff --git a/apps/client/src/app/components/admin-market-data/admin-market-data.component.ts b/apps/client/src/app/components/admin-market-data/admin-market-data.component.ts index 34e6c91ce..d5f2e90c9 100644 --- a/apps/client/src/app/components/admin-market-data/admin-market-data.component.ts +++ b/apps/client/src/app/components/admin-market-data/admin-market-data.component.ts @@ -92,7 +92,6 @@ export class AdminMarketDataComponent implements OnDestroy, OnInit { if ( params['assetProfileDialog'] && params['dataSource'] && - params['dateOfFirstActivity'] && params['symbol'] ) { this.openAssetProfileDialog({ @@ -170,12 +169,16 @@ export class AdminMarketDataComponent implements OnDestroy, OnInit { dateOfFirstActivity, symbol }: UniqueAsset & { dateOfFirstActivity: string }) { + try { + dateOfFirstActivity = format(parseISO(dateOfFirstActivity), DATE_FORMAT); + } catch {} + this.router.navigate([], { queryParams: { + dateOfFirstActivity, dataSource, symbol, - assetProfileDialog: true, - dateOfFirstActivity: format(parseISO(dateOfFirstActivity), DATE_FORMAT) + assetProfileDialog: true } }); }