Skip to content

Commit

Permalink
Additional merge edits
Browse files Browse the repository at this point in the history
  • Loading branch information
amenconi committed Mar 15, 2024
1 parent 197bf26 commit 4d47312
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 0 additions & 4 deletions src/app/@api/nft.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ export class NftApi extends BaseApi<Nft> {
req: Build5Request<NftTransferRequest>,
): Observable<{ [key: string]: number } | undefined> => this.request(WEN_FUNC.nftTransfer, req);

public getNftById(nftId: string): Observable<Nft | undefined> {
return this.listen(nftId);
}

public successfullOrders(
nftId: string,
network?: Network,
Expand Down
10 changes: 4 additions & 6 deletions src/app/components/nft/components/nft-card/nft-card.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ export class NftCardComponent implements OnInit, OnDestroy {
}

ngOnDestroy() {
if (this.nftSelectionSubscription$) {
this.nftSelectionSubscription$.unsubscribe();
}

this.cartSubscription$.unsubscribe();
}

Expand All @@ -262,10 +266,4 @@ export class NftCardComponent implements OnInit, OnDestroy {

this.cd.markForCheck();
}

ngOnDestroy() {
if (this.nftSelectionSubscription$) {
this.nftSelectionSubscription$.unsubscribe();
}
}
}

0 comments on commit 4d47312

Please sign in to comment.