Skip to content

Commit 0b6f8de

Browse files
committed
update
1 parent 8761fe6 commit 0b6f8de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/thirdweb/src/react/core/hooks/wallets/useAutoConnect.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,11 @@ export function useAutoConnectCore(
121121
setConnectionStatus("disconnected");
122122
}
123123
} catch (e) {
124+
setConnectionStatus("disconnected");
124125
if (e instanceof Error) {
125126
console.warn("Error auto connecting wallet:", e.message);
127+
throw e;
126128
}
127-
setConnectionStatus("disconnected");
128129
}
129130
} else {
130131
setConnectionStatus("disconnected");

0 commit comments

Comments
 (0)