Merge pull request #3359 from MetaMask/token-check-url

[new-ui] add token - check for logo url before trying to use
feature/default_network_editable
kumavis 7 years ago committed by GitHub
commit 46d94a241c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      CHANGELOG.md
  2. 2
      ui/app/add-token.js

@ -2,6 +2,8 @@
## Current Master ## Current Master
- Fix "Add Token" screen referencing missing token logo urls
## 4.1.0 2018-2-27 ## 4.1.0 2018-2-27
- Report failed txs to Sentry with more specific message - Report failed txs to Sentry with more specific message

@ -240,7 +240,7 @@ AddTokenScreen.prototype.renderTokenList = function () {
}, [ }, [
h('div.add-token__token-icon', { h('div.add-token__token-icon', {
style: { style: {
backgroundImage: `url(images/contract/${logo})`, backgroundImage: logo && `url(images/contract/${logo})`,
}, },
}), }),
h('div.add-token__token-data', [ h('div.add-token__token-data', [

Loading…
Cancel
Save