1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

fix useGraphSyncStatus error

This commit is contained in:
Matthias Kretschmann 2022-01-13 17:51:08 +00:00
parent 598174084c
commit 3bac4a1eb8
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 1 additions and 2 deletions

View File

@ -31,6 +31,7 @@ async function fetchGraph(
} }
async function getBlockHead(config: Config) { async function getBlockHead(config: Config) {
if (!config) return
// for ETH main, get block from graph fetch // for ETH main, get block from graph fetch
if (config.network === 'mainnet') { if (config.network === 'mainnet') {
const response: any = await fetchGraph(ethGraphUrl, ethGraphQuery) const response: any = await fetchGraph(ethGraphUrl, ethGraphQuery)

View File

@ -6,7 +6,6 @@ import AddToken from '@shared/AddToken'
import Conversion from '@shared/Price/Conversion' import Conversion from '@shared/Price/Conversion'
import { useWeb3 } from '@context/Web3' import { useWeb3 } from '@context/Web3'
import { getOceanConfig } from '@utils/ocean' import { getOceanConfig } from '@utils/ocean'
import Web3Feedback from '@shared/Web3Feedback'
import styles from './Details.module.css' import styles from './Details.module.css'
export default function Details(): ReactElement { export default function Details(): ReactElement {
@ -128,7 +127,6 @@ export default function Details(): ReactElement {
</p> </p>
</li> </li>
</ul> </ul>
<Web3Feedback networkId={networkId} />
</div> </div>
) )
} }