Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when switching chains before authenticating #61

Closed
Bigbrotha12 opened this issue Dec 18, 2021 · 1 comment
Closed

Error when switching chains before authenticating #61

Bigbrotha12 opened this issue Dec 18, 2021 · 1 comment

Comments

@Bigbrotha12
Copy link

I get an error when trying to switch chains before I log in with Metamask.

image

The issue seems to be in App.jsx hook isAuthenticated. After I changed to !isAuthenticated, it seems to have solve the issue.

useEffect(() => {
if (isAuthenticated && !isWeb3Enabled && !isWeb3EnableLoading) enableWeb3();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isAuthenticated, isWeb3Enabled]);

Can you confirm if this is correct way to resolve in code?

@Y0moo
Copy link
Collaborator

Y0moo commented Dec 22, 2021

Hi @Bigbrotha12 ! Fixed on new version

@Y0moo Y0moo closed this as completed Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants