Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam committed Nov 9, 2023
1 parent 0097060 commit 524d2dc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class TokenTradingPairRowComponent implements OnInit, OnDestroy {
@Input() tableMode = false;
@Output() wenOnFavouriteClick = new EventEmitter<void>();
@Output() wenOnClick = new EventEmitter<void>();
public token?: Token;
public token?: any;
public path = ROUTER_UTILS.config.token.root;
public tradePath = ROUTER_UTILS.config.token.trade;
public listenAvgPrice$: BehaviorSubject<number | undefined> = new BehaviorSubject<
Expand Down Expand Up @@ -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]);
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/collection/pages/upsert/upsert.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 || []),
Expand Down

0 comments on commit 524d2dc

Please sign in to comment.