aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/identicon.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-05-16 14:25:21 +0800
committerGitHub <noreply@github.com>2017-05-16 14:25:20 +0800
commit9560de80a0576cfd775f247c51ebac6a709f4864 (patch)
treee7769d67e754bf3e630a31b87ee9abc06df6da21 /ui/app/components/identicon.js
parent687dfc87bdfbdbde58a247a6ae8ab49b2a324da8 (diff)
parente28e0acaa8fb690a7fe5ac45597837f20d2079e1 (diff)
downloadtangerine-wallet-browser-9560de80a0576cfd775f247c51ebac6a709f4864.tar
tangerine-wallet-browser-9560de80a0576cfd775f247c51ebac6a709f4864.tar.gz
tangerine-wallet-browser-9560de80a0576cfd775f247c51ebac6a709f4864.tar.bz2
tangerine-wallet-browser-9560de80a0576cfd775f247c51ebac6a709f4864.tar.lz
tangerine-wallet-browser-9560de80a0576cfd775f247c51ebac6a709f4864.tar.xz
tangerine-wallet-browser-9560de80a0576cfd775f247c51ebac6a709f4864.tar.zst
tangerine-wallet-browser-9560de80a0576cfd775f247c51ebac6a709f4864.zip
Merge pull request #1430 from MetaMask/i1407-FixNonEditingTxForm
Add test around conf-tx view's gas editing.
Diffstat (limited to 'ui/app/components/identicon.js')
-rw-r--r--ui/app/components/identicon.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/ui/app/components/identicon.js b/ui/app/components/identicon.js
index 6d4871d02..9de854b54 100644
--- a/ui/app/components/identicon.js
+++ b/ui/app/components/identicon.js
@@ -1,6 +1,7 @@
const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
+const isNode = require('detect-node')
const findDOMNode = require('react-dom').findDOMNode
const jazzicon = require('jazzicon')
const iconFactoryGen = require('../../lib/icon-factory')
@@ -40,8 +41,10 @@ IdenticonComponent.prototype.componentDidMount = function () {
var container = findDOMNode(this)
var diameter = props.diameter || this.defaultDiameter
- var img = iconFactory.iconForAddress(address, diameter, false)
- container.appendChild(img)
+ if (!isNode) {
+ var img = iconFactory.iconForAddress(address, diameter, false)
+ container.appendChild(img)
+ }
}
IdenticonComponent.prototype.componentDidUpdate = function () {
@@ -58,6 +61,8 @@ IdenticonComponent.prototype.componentDidUpdate = function () {
}
var diameter = props.diameter || this.defaultDiameter
- var img = iconFactory.iconForAddress(address, diameter, false)
- container.appendChild(img)
+ if (!isNode) {
+ var img = iconFactory.iconForAddress(address, diameter, false)
+ container.appendChild(img)
+ }
}