aboutsummaryrefslogtreecommitdiffstats
path: root/ui/lib/icon-factory.js
diff options
context:
space:
mode:
authorThomas Huang <thomas.b.huang@gmail.com>2017-06-28 01:32:28 +0800
committerThomas Huang <thomas.b.huang@gmail.com>2017-06-28 01:32:28 +0800
commit1977417017eec00a546ab816fa635ea575e4835d (patch)
tree77f942810eda1665b4b8974077985f082bfc24c3 /ui/lib/icon-factory.js
parent235cb1f2d790a7bda349ab0d33ad1009751a8536 (diff)
parent48f7cff8c0e765e85532c860c5f3061ca1d6deb7 (diff)
downloadtangerine-wallet-browser-1977417017eec00a546ab816fa635ea575e4835d.tar.gz
tangerine-wallet-browser-1977417017eec00a546ab816fa635ea575e4835d.tar.zst
tangerine-wallet-browser-1977417017eec00a546ab816fa635ea575e4835d.zip
Merge branch 'master' into i1473-dappDefaultGasPrice
Diffstat (limited to 'ui/lib/icon-factory.js')
-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
}