Metamask logo missing in web3modal

Summary

@fausto.arci and @ottman have both noticed that when onboarding your wallet, until you refresh or restart the browser, the web3 modal does not show the Metamask logo - my suspicion is that this happens when window.web3 is not found.

Steps to reproduce

  • Open a browser without metamask
  • Try to connect your wallet
  • Observe no Metamask logo - clicking will link you to download Metamask

Platform information

Replicated Chrome / Windows

What is the current bug behavior?

No Metamask logo is visible in the web3 modal.

What is the expected correct behavior?

Should see Metamask image, probably be warned that you need to refresh / reload your browser if possible.

Relevant logs and/or screenshots

image

Possible fixes

All of the above explanation is speculation, but it seems likely that window.web3 not being injected is the cause. You can test this by typing it in a browser console.

See: #5186 (comment 771943279) for an idea

Edited by Ben