1
0
mirror of https://github.com/oceanprotocol/react.git synced 2025-02-01 12:29:26 +01:00
This commit is contained in:
mihaisc 2020-08-11 13:19:27 +03:00
parent 4a7604b4f9
commit 9949ae999f
3 changed files with 12 additions and 13 deletions

View File

@ -5,7 +5,7 @@ import { useState } from 'react'
import { useEffect } from 'react'
import shortid from 'shortid'
export function AllDdos() {
const { accountId,chainId, account, ocean } = useOcean()
const { accountId, chainId, account, ocean } = useOcean()
const [ddos, setDdos] = useState<DDO[] | undefined>()
@ -23,7 +23,7 @@ export function AllDdos() {
setDdos(assets.results)
}
init()
}, [ocean, account,chainId])
}, [ocean, account, chainId])
return (
<>

View File

@ -11,8 +11,7 @@ export function NetworkMonitor() {
// temp hack
let network = ''
switch (chainId) {
case 1:
{
case 1: {
network = 'mainnet'
}
case 4: {

View File

@ -88,7 +88,7 @@ function OceanProvider({
async function connect(newConfig?: Config) {
try {
Logger.log('Connecting ...',newConfig)
Logger.log('Connecting ...', newConfig)
newConfig && setConfig(newConfig)