From 96f35ac6a03309bc537240f765f9142675323d3f Mon Sep 17 00:00:00 2001 From: eericxu <2681350846@qq.com> Date: Thu, 11 Jul 2024 11:22:49 +0800 Subject: [PATCH] fix ton-connect --- pages/index.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pages/index.tsx b/pages/index.tsx index 6c89b3ce..09245e63 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -668,6 +668,11 @@ function Home({ className }: { className?: string }) { ); const _onClickTonConnect = useCallback(async () => { + [ + 'ton-connect-ui_last-selected-wallet-info', + 'ton-connect-storage_bridge-connection', + 'ton-connect-ui_wallet-info', + ].forEach(key => window.localStorage.removeItem(key)) const tc = WALLETMAP["ton-connect"] as TonConnect; await tc.init(); const cancelStatusSub = tc.tonconnectui.onStatusChange((w) => {