File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
apps/kyberswap-interface/src/pages/CrossChainSwap/components Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1+ import { ChainId , Currency as EvmCurrency } from '@kyberswap/ks-sdk-core'
12import { Flex } from 'rebass'
23
3- import { isEvmChain } from 'utils'
4+ import { getNativeTokenLogo , isEvmChain } from 'utils'
45
56import { Chain , Currency } from '../adapters'
67import { getNetworkInfo } from '../utils'
@@ -20,7 +21,9 @@ export const TokenLogoWithChain = ({
2021 < Flex sx = { { position : 'relative' , marginRight : '4px' } } >
2122 { isEvmChain ( chainId ) ? (
2223 < img
23- src = { ( currency as any ) ?. logoURI }
24+ src = {
25+ ( currency as EvmCurrency ) ?. isNative ? getNativeTokenLogo ( chainId as ChainId ) : ( currency as any ) ?. logoURI
26+ }
2427 width = { size }
2528 height = { size }
2629 style = { { borderRadius : '50%' } }
You can’t perform that action at this time.
0 commit comments