From 30d7e412c6890c42c5969154b23f4e2137c53a9c Mon Sep 17 00:00:00 2001 From: Marc Garreau Date: Tue, 16 Oct 2018 14:31:11 -0600 Subject: [PATCH] Fixes identicon image (#4124) --- interface/components/DappIdenticon.js | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/interface/components/DappIdenticon.js b/interface/components/DappIdenticon.js index a9211006c..1129c23cb 100644 --- a/interface/components/DappIdenticon.js +++ b/interface/components/DappIdenticon.js @@ -41,23 +41,11 @@ export default class DappIdenticon extends Component { .toDataURL(); } - renderLink() { - /* - return ( - - - - ) - */ - } - render() { - if (!this.props.identity) { - return null; - } + const { identity } = this.props; - if (this.props.link) { - return this.renderLink(); + if (!identity) { + return null; } // dapp class sizes: large, medium, small, tiny @@ -66,11 +54,13 @@ export default class DappIdenticon extends Component { className={`dapp-identicon dapp-${this.props.size}`} title={i18n.t('elements.identiconHelper')} style={{ - backgroundImage: `url('${this.identiconData(this.props.identity)}')` + backgroundImage: `url('${this.identiconData( + identity.toLowerCase() + )}')` }} >