Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
show default IdentityIcon if search by name
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Nov 1, 2016
1 parent 1994e7a commit 6f0a933
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/src/ui/Form/InputAddressSelect/inputAddressSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div className={ styles.wrapper }>
<IdentityIcon
className={ styles.icon }
address={ address }
address={ addressToRender }
inline
/>
<AutoComplete
Expand Down

0 comments on commit 6f0a933

Please sign in to comment.