fix refresh error (#429)
This commit is contained in:
parent
d18ee78ee7
commit
35d650e02b
@ -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(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user