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() {
const [, { updateBlockNumber, updateUSDPrice }] = useApplicationContext()
// slow down polling interval
useEffect(() => {
if (library) {
if (connectorName === 'Network') {
if (library && connectorName === 'Network' && library.polling !== false) {
library.polling = false
} else {
} else if (library && library.pollingInterval !== 5) {
library.pollingInterval = 5
}
}
}, [library, connectorName])
// update usd price
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