Skip to content

Commit

Permalink
fix ton-connect
Browse files Browse the repository at this point in the history
  • Loading branch information
XueMoMo committed Jul 11, 2024
1 parent de85393 commit 96f35ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 96f35ac

Please sign in to comment.