diff --git a/ui/app/pages/send/send-content/add-recipient/add-recipient.component.js b/ui/app/pages/send/send-content/add-recipient/add-recipient.component.js index bfef36524..1c43d8927 100644 --- a/ui/app/pages/send/send-content/add-recipient/add-recipient.component.js +++ b/ui/app/pages/send/send-content/add-recipient/add-recipient.component.js @@ -22,6 +22,7 @@ export default class AddRecipient extends Component { addressBookEntryName: PropTypes.string, contacts: PropTypes.array, nonContacts: PropTypes.array, + setInternalSearch: PropTypes.func, } constructor(props) { @@ -140,15 +141,28 @@ export default class AddRecipient extends Component { } renderTransfer() { - const { ownedAccounts } = this.props + let { ownedAccounts } = this.props + const { query, setInternalSearch } = this.props const { t } = this.context + const { isShowingTransfer } = this.state + + if (isShowingTransfer && query) { + ownedAccounts = ownedAccounts.filter( + (item) => + item.name.toLowerCase().indexOf(query.toLowerCase()) > -1 || + item.address.toLowerCase().indexOf(query.toLowerCase()) > -1, + ) + } return (