diff --git a/packages/thirdweb/src/react/core/hooks/wallets/useAutoConnect.ts b/packages/thirdweb/src/react/core/hooks/wallets/useAutoConnect.ts index 7c41dcd916e..e652c2e83ae 100644 --- a/packages/thirdweb/src/react/core/hooks/wallets/useAutoConnect.ts +++ b/packages/thirdweb/src/react/core/hooks/wallets/useAutoConnect.ts @@ -121,10 +121,11 @@ export function useAutoConnectCore( setConnectionStatus("disconnected"); } } catch (e) { + setConnectionStatus("disconnected"); if (e instanceof Error) { console.warn("Error auto connecting wallet:", e.message); + throw e; } - setConnectionStatus("disconnected"); } } else { setConnectionStatus("disconnected");