Skip to content

Commit

Permalink
fix: use correct network name for logo URLs (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
just-toby authored 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

1 comment on commit dd65824

@vercel
Copy link

@vercel vercel bot commented on dd65824 Mar 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

widgets – ./

widgets-git-main-uniswap.vercel.app
widgets-uniswap.vercel.app
widgets-seven-tau.vercel.app

Please sign in to comment.