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 df734ba commit f680496Copy full SHA for f680496
.changeset/dirty-goats-invent.md
@@ -0,0 +1,5 @@
1
+---
2
+"thirdweb": patch
3
4
+
5
+Fix connecting to cb wallet browser extension when already on the same chain
packages/thirdweb/src/wallets/coinbase/coinbase-web.ts
@@ -463,11 +463,7 @@ export async function connectCoinbaseWalletSDK(
463
? options.chain
464
: getCachedChain(chainId);
465
// Switch to chain if provided
466
- if (
467
- connectedChainId &&
468
- options?.chain &&
469
- connectedChainId !== options?.chain.id
470
- ) {
+ if (chainId && options?.chain && chainId !== options?.chain.id) {
471
await switchChainCoinbaseWalletSDK(provider, options.chain);
472
chain = options.chain;
473
}
0 commit comments