mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-14 17:24:51 +01:00
test fix
This commit is contained in:
parent
3c1c6418d9
commit
cb4b3d0bc9
@ -1,7 +1,5 @@
|
|||||||
import React from 'react'
|
import React, { useEffect } from 'react'
|
||||||
import { useOcean } from '@oceanprotocol/react'
|
import { useOcean } from '@oceanprotocol/react'
|
||||||
import { ConfigHelper } from '@oceanprotocol/lib'
|
|
||||||
import { useEffect } from 'react'
|
|
||||||
import { getOceanConfig } from './wrapRootElement'
|
import { getOceanConfig } from './wrapRootElement'
|
||||||
|
|
||||||
export function NetworkMonitor() {
|
export function NetworkMonitor() {
|
||||||
@ -13,9 +11,11 @@ export function NetworkMonitor() {
|
|||||||
switch (chainId) {
|
switch (chainId) {
|
||||||
case 1: {
|
case 1: {
|
||||||
network = 'mainnet'
|
network = 'mainnet'
|
||||||
|
break
|
||||||
}
|
}
|
||||||
case 4: {
|
case 4: {
|
||||||
network = 'rinkeby'
|
network = 'rinkeby'
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const config = getOceanConfig(network)
|
const config = getOceanConfig(network)
|
||||||
|
Loading…
Reference in New Issue
Block a user