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

Early return if no network data is available

This commit is contained in:
Jamie Hewitt 2023-01-04 15:32:30 +00:00
parent 686f4d1803
commit a60324e95c

View File

@ -22,6 +22,7 @@ export function getNetworkType(network: EthereumListsChain): string {
export function getNetworkDisplayName(data: EthereumListsChain): string { export function getNetworkDisplayName(data: EthereumListsChain): string {
let displayName let displayName
if (!data) return 'Unknown'
switch (data.chainId) { switch (data.chainId) {
case 137: case 137: