**Describe the bug** If a user enables in-browser translation, the app will crash after selecting a wallet. **To Reproduce** Steps to reproduce the behavior: 1. Go to ['demo'](https://anza-xyz.github.io/wallet-adapter/example/) 2. Click on 'Translate this page' 3. Select any language 4. Click on 'Select wallet' 5. Try to connect to 'Phantom Wallet' or any other wallet **Expected behavior** The wallet should connect and the modal window should close **Screenshots** <img width="1229" alt="image" src="https://github.com/user-attachments/assets/b5f9012f-4ada-47fe-a0ad-9fa95dd74a44"> <img width="1728" alt="image" src="https://github.com/user-attachments/assets/8e7bae6d-8f01-4a87-b3f8-c48b09e48258"> **Desktop (please complete the following information):** - OS: macOS 14.5 (23F79) - Chrome - Version 129.0.6668.103 https://github.com/user-attachments/assets/0259962f-9992-48ab-be67-a9885a7a3882