mirror of
https://github.com/oceanprotocol/react.git
synced 2025-02-01 12:29:26 +01:00
format
This commit is contained in:
parent
4a7604b4f9
commit
9949ae999f
@ -5,7 +5,7 @@ import { useState } from 'react'
|
|||||||
import { useEffect } from 'react'
|
import { useEffect } from 'react'
|
||||||
import shortid from 'shortid'
|
import shortid from 'shortid'
|
||||||
export function AllDdos() {
|
export function AllDdos() {
|
||||||
const { accountId,chainId, account, ocean } = useOcean()
|
const { accountId, chainId, account, ocean } = useOcean()
|
||||||
|
|
||||||
const [ddos, setDdos] = useState<DDO[] | undefined>()
|
const [ddos, setDdos] = useState<DDO[] | undefined>()
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ export function AllDdos() {
|
|||||||
setDdos(assets.results)
|
setDdos(assets.results)
|
||||||
}
|
}
|
||||||
init()
|
init()
|
||||||
}, [ocean, account,chainId])
|
}, [ocean, account, chainId])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
@ -11,8 +11,7 @@ export function NetworkMonitor() {
|
|||||||
// temp hack
|
// temp hack
|
||||||
let network = ''
|
let network = ''
|
||||||
switch (chainId) {
|
switch (chainId) {
|
||||||
case 1:
|
case 1: {
|
||||||
{
|
|
||||||
network = 'mainnet'
|
network = 'mainnet'
|
||||||
}
|
}
|
||||||
case 4: {
|
case 4: {
|
||||||
|
@ -88,7 +88,7 @@ function OceanProvider({
|
|||||||
|
|
||||||
async function connect(newConfig?: Config) {
|
async function connect(newConfig?: Config) {
|
||||||
try {
|
try {
|
||||||
Logger.log('Connecting ...',newConfig)
|
Logger.log('Connecting ...', newConfig)
|
||||||
|
|
||||||
newConfig && setConfig(newConfig)
|
newConfig && setConfig(newConfig)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user