Commit 864a2aef authored by tom's avatar tom

fix token logo link

parent 43ae60b4
......@@ -12,13 +12,13 @@ interface Props {
}
const TokenLogo = ({ hash, name, className }: Props) => {
const logoSrc = appConfig.network.assetsPathname ? `
https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/
${ appConfig.network.assetsPathname }
/assets/
${ hash }
/logo.png
` : undefined;
const logoSrc = appConfig.network.assetsPathname ? [
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/',
appConfig.network.assetsPathname,
'/assets/',
hash,
'/logo.png',
].join('') : undefined;
return <Image className={ className } src={ logoSrc } alt={ `${ name || 'token' } logo` } fallback={ <EmptyElement/> }/>;
};
......
......@@ -54,7 +54,7 @@ const TxDetailsTokenTransfers = ({ data, txHash }: Props) => {
<NextLink href={ viewAllUrl } passHref>
<Link>View all</Link>
</NextLink>
<Text variant="secondary" as="span" whiteSpace="pre"> (15)</Text>
<Text variant="secondary" as="span" whiteSpace="pre"> ({ data.length })</Text>
</GridItem>
</>
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment