I'm currently working on "How to build an NFT Marketplace from Scratch" and, Implementing wallet connection.
The wallet connect Button is always shows as "connected" even if I disconnect wallet.
useEffect(() => {
let val = window.ethereum.isConnected();
console.log(val);
if (val) {
console.log("here");
getAddress();
toggleConnect(val);
updateButton();
}
window.ethereum.isConnected() is always retuning true.
How can I fix it?