Commit 65e96296 authored by Noah Zinsmeister's avatar Noah Zinsmeister Committed by GitHub

refresh bug v2 (#430)

parent 35d650e0
...@@ -68,17 +68,17 @@ export default function Provider({ children }) { ...@@ -68,17 +68,17 @@ export default function Provider({ children }) {
} }
export function Updater() { export function Updater() {
const { networkId, library, connectorName } = useWeb3Context() const { networkId, library } = useWeb3Context()
const globalBlockNumber = useBlockNumber() const globalBlockNumber = useBlockNumber()
const [, { updateBlockNumber, updateUSDPrice }] = useApplicationContext() const [, { updateBlockNumber, updateUSDPrice }] = useApplicationContext()
// slow down polling interval // slow down polling interval
if (library && connectorName === 'Network' && library.polling !== false) { // if (library && connectorName === 'Network' && library.pollingInterval !== 15) {
library.polling = false // library.pollingInterval = 15
} else if (library && library.pollingInterval !== 5) { // } else if (library && library.pollingInterval !== 5) {
library.pollingInterval = 5 // library.pollingInterval = 5
} // }
// 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