diff --git a/.changeset/fast-chairs-glow.md b/.changeset/fast-chairs-glow.md new file mode 100644 index 00000000000..97dd45248c3 --- /dev/null +++ b/.changeset/fast-chairs-glow.md @@ -0,0 +1,6 @@ +--- +"thirdweb": patch +--- + +- Remove the feature that sets another connected wallet as active when disconnecting the current active wallet. +- Do not save personal wallet as a separate wallet in connected wallets list. diff --git a/packages/thirdweb/src/wallets/manager/index.ts b/packages/thirdweb/src/wallets/manager/index.ts index 2b8770cd9f8..12597ed5cf2 100644 --- a/packages/thirdweb/src/wallets/manager/index.ts +++ b/packages/thirdweb/src/wallets/manager/index.ts @@ -76,14 +76,7 @@ export function createConnectionManager(storage: AsyncStorage) { deleteConnectParamsFromStorage(storage, wallet.id); removeConnectedWallet(wallet); - // there are still connected wallets, switch to the next one - if (connectedWallets.getValue().length > 0) { - const nextWallet = connectedWallets.getValue()[0] as Wallet; - setActiveWallet(nextWallet); - return; - } - - // if disconnecting the last wallet + // if disconnecting the active wallet if (activeWalletStore.getValue() === wallet) { storage.removeItem(LAST_ACTIVE_EOA_ID); activeAccountStore.setValue(undefined);