1
0
mirror of https://github.com/oceanprotocol/react.git synced 2024-12-24 01:56:21 +01:00
This commit is contained in:
mihaisc 2020-08-06 16:41:49 +03:00
parent 1f7be93bf6
commit 56a9531f3e

View File

@ -43,7 +43,7 @@ function OceanProvider({
}: {
initialConfig: Config
web3ModalOpts?: Partial<ICoreOptions>
handleNetworkChanged: (networkId: string | number)=>Promise<void>
handleNetworkChanged: (networkId: string | number) => Promise<void>
children: any
}): ReactElement {
const [web3, setWeb3] = useState<Web3 | undefined>()
@ -141,7 +141,6 @@ function OceanProvider({
connect()
}
// TODO: #68 Refetch balance periodically, or figure out some event to subscribe to
useEffect(() => {