Whether it does authenticate again or not is irrelevant, it still needs to get enabled so that it connects to metamask. That is not the issue, and yes I have just tried now with removing the authenticate() method inside and leaving only the enable.
What is that âeverythingâ?
Also I just tried adding another useEffect to track for changes in nativeBalance, tokensBalance and account and log their values if they do get changed:
useEffect(() => {
console.log(user?.attributes?.ethAddress)
console.log('account', account)
console.log('nativeBalance', nativeBalance)
console.log('tokensBalance', tokensBalance)
}, [user, account, nativeBalance, tokensBalance])
Also no effect, they are still null.
Please, keep in mind this, as I have already mentioned, this is only after the app is built, there are no problems when running in dev mode.