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:
parent
686f4d1803
commit
a60324e95c
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user