Skip to content

Commit 9c78334

Browse files
author
dschlabach
committed
updat
1 parent c1157d3 commit 9c78334

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

playground/nextjs-app-router/components/form/wallet-type.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ export function WalletType() {
3737
}
3838
}, [walletType, account.address]);
3939

40+
useEffect(() => {
41+
const storedWalletType = localStorage.getItem('walletType');
42+
if (storedWalletType) {
43+
setWalletType(storedWalletType as WalletPreference);
44+
}
45+
}, []);
46+
4047
async function clearWalletType() {
4148
localStorage.removeItem('walletType');
4249
setWalletType(undefined);

0 commit comments

Comments
 (0)