Skip to content

Commit

Permalink
Merge pull request #111 from oceanprotocol/fix/issue-added-etherium-n…
Browse files Browse the repository at this point in the history
…etwork-name

added etherium to network name
  • Loading branch information
EnzoVezzaro authored Nov 8, 2023
2 parents 00c387a + 7bddca1 commit 1065b82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/NetworkName/NetworkName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ export function getNetworkDisplayName(chainId: number): string {
if (!chainId) return 'Unknown'

switch (chainId) {
case 1:
displayName = 'Ethereum'
break
case 137:
displayName = 'Polygon'
break
Expand All @@ -22,7 +25,7 @@ export function getNetworkDisplayName(chainId: number): string {
displayName = 'GAIA-X'
break
default:
displayName = "Unrecognized"
displayName = 'Unrecognized'
break
}

Expand Down

0 comments on commit 1065b82

Please sign in to comment.