https://codesandbox.io/s/dazzling-kepler-lupje0?file=/src/App.js:254-290 I have created useConnect() hook and connectToWallet() function inside it. I have created wallet in header component . And I also listen to accountChange of metamask in app component . in there is account is null I call logout function and otherwise connectToWallet() function of useConnect. When ever I click on wallet of header it call the connectToWallet() function and account will automatically listen to it as well. So it create multiple prompt of metamask.๐๐