We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e1af6e commit 6cbc910Copy full SHA for 6cbc910
src/stores.ts
@@ -97,6 +97,11 @@ walletInterface.subscribe((walletInterface: WalletInterface | null) => {
97
})
98
99
export function resetWalletState(options: { disconnected?: boolean } = {}) {
100
+ // clear all current intervals if they exist
101
+ currentSyncerIntervals.forEach(
102
+ (interval: number | undefined) => interval && clearInterval(interval)
103
+ )
104
+
105
walletInterface.update((currentInterface: WalletInterface | null) => {
106
const { disconnected } = options
107
!disconnected &&
0 commit comments