Skip to content

Commit

Permalink
Clear subscribedAddresses when the unsubscribeFromAllSubscriptions is…
Browse files Browse the repository at this point in the history
… called
  • Loading branch information
skubarenko committed Feb 22, 2024
1 parent a9b17d7 commit a74a86b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ export class DipDupBridgeDataProvider extends RemoteService implements Transfers

unsubscribeFromAllSubscriptions(): void {
this.dipDupWebSocketClient.unsubscribeFromAllSubscriptions();
this.subscribedAddresses.clear();
this.currentTokenTransfersSubscription = undefined;
}

async getBalance(accountAddress: string, token: NonNativeEtherlinkToken): Promise<AccountTokenBalance> {
Expand Down

0 comments on commit a74a86b

Please sign in to comment.