From 524d2dc3a1606fdcb6265a9577b30895457056b0 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 8 Nov 2023 19:58:57 -0800 Subject: [PATCH] minor tweaks --- .../token-all-token-row/token-all-token-row.component.ts | 6 ++++-- .../token-trading-pair-row.component.ts | 4 ++-- src/app/pages/collection/pages/upsert/upsert.page.ts | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/app/components/token/components/token-all-token-row/token-all-token-row.component.ts b/src/app/components/token/components/token-all-token-row/token-all-token-row.component.ts index c6bb7b1..32c3227 100644 --- a/src/app/components/token/components/token-all-token-row/token-all-token-row.component.ts +++ b/src/app/components/token/components/token-all-token-row/token-all-token-row.component.ts @@ -57,10 +57,12 @@ export class TokenAllTokenRowComponent implements OnInit, OnDestroy { this.tokenApi .listen(this.tokenId) .pipe(untilDestroyed(this)) - .subscribe((token: Token) => { + .subscribe((token: any) => { if (token) { this.token = token; - this.listenToStats(this.token.uid); + if (this.token?.uid) { + this.listenToStats(this.token.uid); + } this.cd.markForCheck(); } }); diff --git a/src/app/components/token/components/token-trading-pair-row/token-trading-pair-row.component.ts b/src/app/components/token/components/token-trading-pair-row/token-trading-pair-row.component.ts index 58fe856..05d6b75 100644 --- a/src/app/components/token/components/token-trading-pair-row/token-trading-pair-row.component.ts +++ b/src/app/components/token/components/token-trading-pair-row/token-trading-pair-row.component.ts @@ -34,7 +34,7 @@ export class TokenTradingPairRowComponent implements OnInit, OnDestroy { @Input() tableMode = false; @Output() wenOnFavouriteClick = new EventEmitter(); @Output() wenOnClick = new EventEmitter(); - public token?: Token; + public token?: any; public path = ROUTER_UTILS.config.token.root; public tradePath = ROUTER_UTILS.config.token.trade; public listenAvgPrice$: BehaviorSubject = new BehaviorSubject< @@ -64,7 +64,7 @@ export class TokenTradingPairRowComponent implements OnInit, OnDestroy { this.tokenApi .listen(this.tokenId) .pipe(untilDestroyed(this)) - .subscribe((token: Token) => { + .subscribe((token: any) => { if (token) { this.token = token; this.listenToStats(this.token.uid, [token.status || TokenStatus.PRE_MINTED]); diff --git a/src/app/pages/collection/pages/upsert/upsert.page.ts b/src/app/pages/collection/pages/upsert/upsert.page.ts index 411859e..d436447 100644 --- a/src/app/pages/collection/pages/upsert/upsert.page.ts +++ b/src/app/pages/collection/pages/upsert/upsert.page.ts @@ -255,7 +255,7 @@ export class UpsertPage implements OnInit, OnDestroy { // Load selected options for award/collections o.accessAwards?.forEach(async (a) => { - const award: Award = await firstValueFrom(this.awardApi.listen(a)); + const award: any = await firstValueFrom(this.awardApi.listen(a)); if (award) { this.filteredAwards$.next([ ...(this.filteredAwards$.value || []),