From 2c1c076d599a657f7a4572d5221f8aeeceae9d3b Mon Sep 17 00:00:00 2001 From: Agustin Aguilar Date: Sat, 9 Nov 2019 17:15:15 +0100 Subject: [PATCH] hotfix/trust-icons-change (#501) * Trust URI scheme, replaced by checksum address * Run prettier --- src/components/TokenLogo/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/TokenLogo/index.js b/src/components/TokenLogo/index.js index bf466980c4..26179de68c 100644 --- a/src/components/TokenLogo/index.js +++ b/src/components/TokenLogo/index.js @@ -1,10 +1,13 @@ import React, { useState } from 'react' import styled from 'styled-components' +import { isAddress } from '../../utils' import { ReactComponent as EthereumLogo } from '../../assets/images/ethereum-logo.svg' const TOKEN_ICON_API = address => - `https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/${address}/logo.png` + `https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/${isAddress( + address + )}/logo.png` const BAD_IMAGES = {} const Image = styled.img`