I trying to show to user the connection buttons if isAuthenticated false and user is null but, it doesn’t work.
I’m disconnected from MetaMask and TrustWallet. How it can be?
export default function Main() {
const {
authenticate,
isWeb3Enabled,
isAuthenticated,
user,
enableWeb3,
Moralis,
} = useMoralis();
if(!isAuthenticated && !user){
return <Connection />
}
else{
return (
<Switch>
....
</Switch>
)
}