Replies: 2 comments 19 replies
-
Can you push to a remote repo and send the link - thanks. |
Beta Was this translation helpful? Give feedback.
17 replies
-
useEffect(() => {
Moralis.onAccountChanged((account) => {
console.log("Account changed to ${account}")
if (account == null) {
window.localStorage.removeItem("connected")
deactivateWeb3()
console.log("Null account found")
}
})
}, [Moralis, deactivateWeb3]) There you go, @armontej . |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to follow along with the IPFS part of lesson 10, when i go to run yarn build i run into this errors
armon@DESKTOP-TK7T6N9 MINGW64 ~/nextjs-smartcontract-lottery-fcc (main)
$ yarn build
yarn run v1.22.15
$ next build
./components/LotteryEntrance.js
68:8 Warning: React Hook useEffect has a missing dependency: 'updateUI'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
./components/ManualHeader.jsx
16:8 Warning: React Hook useEffect has a missing dependency: 'enableWeb3'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
27:8 Warning: React Hook useEffect has missing dependencies: 'Moralis' and 'deactivateWeb3'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
info - Linting and checking validity of types
info - Creating an optimized production build ..
and the Creating an optimized production build.... part keeps flashing
Beta Was this translation helpful? Give feedback.
All reactions