diff --git a/packages/wallet-management/src/LiFiWalletManagement.ts b/packages/wallet-management/src/LiFiWalletManagement.ts index dc94a0c7a..ed03ada03 100644 --- a/packages/wallet-management/src/LiFiWalletManagement.ts +++ b/packages/wallet-management/src/LiFiWalletManagement.ts @@ -24,8 +24,6 @@ export const useLiFiWalletManagement = () => { const [signer, setSigner] = useState(); const flushCurrentWalletData = () => { - console.log('flushing wallet data'); - setCurrentConnector(() => undefined); setCurrentProvider(() => undefined); setSigner(() => undefined); @@ -36,6 +34,7 @@ export const useLiFiWalletManagement = () => { if (connector) { const provider = new ethers.providers.Web3Provider( connector.provider as ExternalProvider, + 'any', ); setCurrentProvider(() => provider); setCurrentConnector(() => connector); @@ -120,6 +119,6 @@ export const useLiFiWalletManagement = () => { connect, disconnect, signer, - provider: currentProvider ?? priorityProvider, + provider: signer?.provider, }; };