From 0b6f8de551922ed468fae77f4271c0ba7ff859ac Mon Sep 17 00:00:00 2001 From: Kien Ngo Date: Sat, 14 Dec 2024 17:40:35 +0700 Subject: [PATCH] update --- .../thirdweb/src/react/core/hooks/wallets/useAutoConnect.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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");