diff --git a/src/hooks/useWebViewHandler.ts b/src/hooks/useWebViewHandler.ts index 7c086b9..b306a8f 100644 --- a/src/hooks/useWebViewHandler.ts +++ b/src/hooks/useWebViewHandler.ts @@ -45,15 +45,13 @@ export const useWebViewHandler = () => { window.Android?.onAccountError?.('No networks configured'); return; } - console.log('Available networks:', networksData); + // Create wallet using the provided mnemonic if it doesn't exist const walletExists = await isWalletCreated(); - console.log('Wallet exists:', walletExists); if (!walletExists) { - console.log('Creating wallet with mnemonic:', mnemonic); await createWallet(networksData, mnemonic); } - console.log('Wallet created or already exists'); + // Find the requested network const requestedNetwork = networksData.find(network => network.chainId === chainId); if (!requestedNetwork) {