Skip to content

Commit

Permalink
added etherium to network name
Browse files Browse the repository at this point in the history
  • Loading branch information
EnzoVezzaro committed Nov 2, 2023
1 parent 45a63d3 commit 7bddca1
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 7bddca1

Please sign in to comment.