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

unsupported networks (#1678)

This commit is contained in:
EnzoVezzaro 2022-09-12 03:23:53 -04:00 committed by GitHub
parent 0c9b276247
commit 939c8aad0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,7 @@ export function getNetworkType(network: EthereumListsChain): string {
// .network field, which is innexistent on https://chainid.network/chains.json
// We hack in mainnet detection for moonriver.
if (
network &&
!network.name.includes('Testnet') &&
!network.title?.includes('Testnet') &&
network.name !== 'Moonbase Alpha'