diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-10-28 07:16:28 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-10-28 07:16:28 +0800 |
commit | ed3814bff8cf42218fe5a9f068b0474cac73807d (patch) | |
tree | 3c495bcfb7e5d33c87fdb77559937c8678772a67 /ui/app | |
parent | 28eec68f85a423c0baec26b70de0098df8ac2a63 (diff) | |
download | tangerine-wallet-browser-ed3814bff8cf42218fe5a9f068b0474cac73807d.tar tangerine-wallet-browser-ed3814bff8cf42218fe5a9f068b0474cac73807d.tar.gz tangerine-wallet-browser-ed3814bff8cf42218fe5a9f068b0474cac73807d.tar.bz2 tangerine-wallet-browser-ed3814bff8cf42218fe5a9f068b0474cac73807d.tar.lz tangerine-wallet-browser-ed3814bff8cf42218fe5a9f068b0474cac73807d.tar.xz tangerine-wallet-browser-ed3814bff8cf42218fe5a9f068b0474cac73807d.tar.zst tangerine-wallet-browser-ed3814bff8cf42218fe5a9f068b0474cac73807d.zip |
Fix identicon rendering
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/components/identicon.js | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/ui/app/components/identicon.js b/ui/app/components/identicon.js index 4b2bf899e..30ef6fbd3 100644 --- a/ui/app/components/identicon.js +++ b/ui/app/components/identicon.js @@ -16,8 +16,8 @@ function IdenticonComponent () { } IdenticonComponent.prototype.render = function () { - var state = this.props - var diameter = state.diameter || this.defaultDiameter + var props = this.props + var diameter = props.diameter || this.defaultDiameter return ( h('div', { key: 'identicon-' + this.props.address, @@ -33,15 +33,14 @@ IdenticonComponent.prototype.render = function () { } IdenticonComponent.prototype.componentDidMount = function () { - var state = this.props - var address = state.address + var props = this.props + var address = props.address if (!address) return var container = findDOMNode(this) - var diameter = state.diameter || this.defaultDiameter - var imageify = state.imageify === undefined ? true : state.imageify - var img = iconFactory.iconForAddress(address, diameter, imageify) + var diameter = props.diameter || this.defaultDiameter + var img = iconFactory.iconForAddress(address, diameter, false) container.appendChild(img) } |