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