From 6f0a9330b2bfc2235f5d7baec24e82ff093a4261 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 1 Nov 2016 19:36:15 +0100 Subject: [PATCH] show default IdentityIcon if search by name --- js/src/ui/Form/InputAddressSelect/inputAddressSelect.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/src/ui/Form/InputAddressSelect/inputAddressSelect.js b/js/src/ui/Form/InputAddressSelect/inputAddressSelect.js index 45d90abe22a..b11b53328ba 100644 --- a/js/src/ui/Form/InputAddressSelect/inputAddressSelect.js +++ b/js/src/ui/Form/InputAddressSelect/inputAddressSelect.js @@ -57,11 +57,15 @@ class InputAddressSelect extends Component { const { label, hint, error } = this.props; const { choices, address } = this.state; + // don't show IdentityIcon if user searches by name + const addressToRender = (address.slice(0, 2) === '0x') + ? address : null; + return (