Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaisc committed Aug 11, 2020
1 parent 4a7604b commit 9949ae9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
4 changes: 2 additions & 2 deletions example/src/AllDdos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>()

Expand All @@ -23,7 +23,7 @@ export function AllDdos() {
setDdos(assets.results)
}
init()
}, [ocean, account,chainId])
}, [ocean, account, chainId])

return (
<>
Expand Down
19 changes: 9 additions & 10 deletions example/src/NetworkMonitor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@ export function NetworkMonitor() {

const handleNetworkChanged = (chainId: number) => {
// const config = getOceanConfig(chainId)
// temp hack
let network = ''
switch (chainId) {
case 1:
{
network = 'mainnet'
}
case 4: {
network = 'rinkeby'
}
// temp hack
let network = ''
switch (chainId) {
case 1: {
network = 'mainnet'
}
case 4: {
network = 'rinkeby'
}
}
const config = new ConfigHelper().getConfig(network)
connect(config)
}
Expand Down
2 changes: 1 addition & 1 deletion src/providers/OceanProvider/OceanProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function OceanProvider({

async function connect(newConfig?: Config) {
try {
Logger.log('Connecting ...',newConfig)
Logger.log('Connecting ...', newConfig)

newConfig && setConfig(newConfig)

Expand Down

0 comments on commit 9949ae9

Please sign in to comment.