I finished the video and when starting Live Server it automatically opened metamask to login but the profile button was visible. Once I login the Connect wallet disappears and the Profile button stays.
Im not sure but I think initUser isnt going through upon running the site because if i mess with
initUser = async () => {
if (await Moralis.User.current()){
hideElement(userConnectButton);
showElement(userProfileButton);
}else{
showElement(userConnectButton);
hideElement(userProfileButton);
}
the hide/showElement for either userConnectButton or ProfileButton it doesnt have an affect upon initial run. Even if i change both to hide under }else{ when i run it both buttons are visible. Once I log into MetaMask and i change any of the hide/show do the buttons disappear or appear. Im also am having this pop up when i use the command python -m http.server
Just wondering if that will be an issue. My main issue though is the buttons being persistent upon running the page when the wallet isnt connected.