Allow searching for and viewing assets not in the asset registry.

fixes #111
This commit is contained in:
softsimon
2020-11-22 16:03:23 +07:00
parent 30fb0bad78
commit 11d67cf756
5 changed files with 30 additions and 15 deletions

View File

@@ -98,6 +98,9 @@ export class AssetComponent implements OnInit, OnDestroy {
switchMap(([asset, assetsData]) => {
this.asset = asset;
this.assetContract = assetsData[this.asset.asset_id];
if (!this.assetContract) {
this.assetContract = [null, '?', 'Unknown', 0];
}
this.isNativeAsset = asset.asset_id === this.nativeAssetId;
this.updateChainStats();
this.websocketService.startTrackAsset(asset.asset_id);