diff --git a/src/app/@api/nft.api.ts b/src/app/@api/nft.api.ts index 2b84093..a228a40 100644 --- a/src/app/@api/nft.api.ts +++ b/src/app/@api/nft.api.ts @@ -71,10 +71,6 @@ export class NftApi extends BaseApi { req: Build5Request, ): Observable<{ [key: string]: number } | undefined> => this.request(WEN_FUNC.nftTransfer, req); - public getNftById(nftId: string): Observable { - return this.listen(nftId); - } - public successfullOrders( nftId: string, network?: Network, diff --git a/src/app/components/nft/components/nft-card/nft-card.component.ts b/src/app/components/nft/components/nft-card/nft-card.component.ts index ff35a05..0a3333b 100644 --- a/src/app/components/nft/components/nft-card/nft-card.component.ts +++ b/src/app/components/nft/components/nft-card/nft-card.component.ts @@ -244,6 +244,10 @@ export class NftCardComponent implements OnInit, OnDestroy { } ngOnDestroy() { + if (this.nftSelectionSubscription$) { + this.nftSelectionSubscription$.unsubscribe(); + } + this.cartSubscription$.unsubscribe(); } @@ -262,10 +266,4 @@ export class NftCardComponent implements OnInit, OnDestroy { this.cd.markForCheck(); } - - ngOnDestroy() { - if (this.nftSelectionSubscription$) { - this.nftSelectionSubscription$.unsubscribe(); - } - } }