Skip to content

Commit

Permalink
fix: use correct network name for logo URLs (Uniswap#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
just-toby committed Mar 8, 2023
1 parent 5922ab3 commit dd65824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Logo/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import CeloLogo from '../../assets/svg/celo_logo.svg'
import MaticLogo from '../../assets/svg/matic-token-icon.svg'
import { LogoTableInput } from './LogoTable'

type Network = 'ethereum' | 'arbitrum' | 'optimism' | 'polygon' | 'celo' | 'binance'
type Network = 'ethereum' | 'arbitrum' | 'optimism' | 'polygon' | 'celo' | 'smartchain'

function chainIdToNetworkName(networkId: SupportedChainId): Network | undefined {
switch (networkId) {
Expand All @@ -22,7 +22,7 @@ function chainIdToNetworkName(networkId: SupportedChainId): Network | undefined
case SupportedChainId.CELO:
return 'celo'
case SupportedChainId.BNB:
return 'binance'
return 'smartchain'
default:
return 'ethereum'
}
Expand Down

0 comments on commit dd65824

Please sign in to comment.