mirror of
https://github.com/oceanprotocol/market.git
synced 2024-07-01 06:11:43 +02:00
check if config is null (#1276)
This commit is contained in:
parent
f4a0376f99
commit
905be83a00
|
@ -10,7 +10,7 @@ function useNftFactory(): NftFactory {
|
|||
useEffect(() => {
|
||||
if (!web3 || !chainId) return
|
||||
const config = getOceanConfig(chainId)
|
||||
const factory = new NftFactory(config.erc721FactoryAddress, web3)
|
||||
const factory = new NftFactory(config?.erc721FactoryAddress, web3)
|
||||
setNftFactory(factory)
|
||||
}, [web3, chainId])
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user