Skip to content

Commit 46d94a2

Browse files
authored
Merge pull request #3359 from MetaMask/token-check-url
[new-ui] add token - check for logo url before trying to use
2 parents 6c472b7 + cf6a2f6 commit 46d94a2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Current Master
44

5+
- Fix "Add Token" screen referencing missing token logo urls
6+
57
## 4.1.0 2018-2-27
68

79
- Report failed txs to Sentry with more specific message

ui/app/add-token.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ AddTokenScreen.prototype.renderTokenList = function () {
240240
}, [
241241
h('div.add-token__token-icon', {
242242
style: {
243-
backgroundImage: `url(images/contract/${logo})`,
243+
backgroundImage: logo && `url(images/contract/${logo})`,
244244
},
245245
}),
246246
h('div.add-token__token-data', [

0 commit comments

Comments
 (0)