aboutsummaryrefslogtreecommitdiffstats
path: root/ui/lib
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-06-23 08:28:10 +0800
committerGitHub <noreply@github.com>2017-06-23 08:28:10 +0800
commitf022c7c714e17faf9558839116ba90ca8082e6b1 (patch)
tree7cab7a825004343b6f7d3aa909eef71d31391fc6 /ui/lib
parent2a429253994a0df2aae27234a7ac11c870bdc713 (diff)
parentc0c588053a29a4406ef30de8628065429ff99595 (diff)
downloadtangerine-wallet-browser-f022c7c714e17faf9558839116ba90ca8082e6b1.tar.gz
tangerine-wallet-browser-f022c7c714e17faf9558839116ba90ca8082e6b1.tar.zst
tangerine-wallet-browser-f022c7c714e17faf9558839116ba90ca8082e6b1.zip
Merge pull request #1603 from MetaMask/AddTokenList
Add popular token list
Diffstat (limited to 'ui/lib')
-rw-r--r--ui/lib/icon-factory.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/lib/icon-factory.js b/ui/lib/icon-factory.js
index 45be47b7a..27a74de66 100644
--- a/ui/lib/icon-factory.js
+++ b/ui/lib/icon-factory.js
@@ -20,6 +20,7 @@ IconFactory.prototype.iconForAddress = function (address, diameter) {
if (iconExistsFor(addr)) {
return imageElFor(addr)
}
+
return this.generateIdenticonSvg(address, diameter)
}
@@ -43,7 +44,7 @@ IconFactory.prototype.generateNewIdenticon = function (address, diameter) {
// util
function iconExistsFor (address) {
- return (contractMap.address) && isValidAddress(address) && (contractMap[address].logo)
+ return contractMap[address] && isValidAddress(address) && contractMap[address].logo
}
function imageElFor (address) {
@@ -52,7 +53,7 @@ function imageElFor (address) {
const path = `images/contract/${fileName}`
const img = document.createElement('img')
img.src = path
- img.style.width = '100%'
+ img.style.width = '75%'
return img
}