From 67a547b59989df199231664fb90fe4ff1a9b2066 Mon Sep 17 00:00:00 2001 From: Sanaz Mahmoudi Date: Tue, 7 Oct 2025 14:56:38 +0330 Subject: [PATCH] fix: removed unused things in dapp.connect --- src/dapp/dapp.connect.tsx | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/dapp/dapp.connect.tsx b/src/dapp/dapp.connect.tsx index 5f3c3689a..5fc53d68b 100644 --- a/src/dapp/dapp.connect.tsx +++ b/src/dapp/dapp.connect.tsx @@ -52,19 +52,6 @@ const WALLET_TYPES = { } as const; export const useWeb3 = () => { - const initialState = { - wallet: null, - walletProvider: null, - provider: null, - signer: null, - account: '', - chainId: null, - connected: false, - network: null, - networkName: '', - testnet: config.dappENV === 'testnet', - balance: null, - }; const dispatch = useDispatch(); const walletState = useSelector((state: RootState) => state.wallet); const [pendingConnector, setPendingConnector] = useState | null>(walletState.wallet); @@ -164,7 +151,6 @@ export const useWeb3 = () => { dispatch(resetWalletState()); localStorage.removeItem('walletType'); localStorage.removeItem('selectedWallet'); - setWalletState(initialState); }; useEffect(() => {