Commit 35d650e0 authored by Noah Zinsmeister's avatar Noah Zinsmeister Committed by GitHub

fix refresh error (#429)

parent d18ee78e
...@@ -74,15 +74,11 @@ export function Updater() { ...@@ -74,15 +74,11 @@ export function Updater() {
const [, { updateBlockNumber, updateUSDPrice }] = useApplicationContext() const [, { updateBlockNumber, updateUSDPrice }] = useApplicationContext()
// slow down polling interval // slow down polling interval
useEffect(() => { if (library && connectorName === 'Network' && library.polling !== false) {
if (library) { library.polling = false
if (connectorName === 'Network') { } else if (library && library.pollingInterval !== 5) {
library.polling = false library.pollingInterval = 5
} else { }
library.pollingInterval = 5
}
}
}, [library, connectorName])
// update usd price // update usd price
useEffect(() => { useEffect(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment