Skip to content

Commit f135dfb

Browse files
committed
fix: query update on chain switch was showing previous chain data
1 parent dd515e7 commit f135dfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/useWatchAccount.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ export function useWatchAccount() {
2323
setChainId(accountChain.id);
2424
}
2525

26+
cleanIExecSDKs();
2627
// Update dataProtector client
2728
if (status === 'connected') {
2829
initIExecSDKs({ connector });
2930
return;
3031
}
31-
cleanIExecSDKs();
3232
}, [
3333
connector,
3434
status,

0 commit comments

Comments
 (0)