1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fixing add recipient flow issue with contact list/recent recipients (#14771)

This commit is contained in:
ryanml 2022-06-03 15:41:05 -07:00 committed by GitHub
parent c18c3b078e
commit 250b3d5499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -208,9 +208,13 @@ export default class AddRecipient extends Component {
addressBook={addressBook}
searchForContacts={this.searchForContacts.bind(this)}
searchForRecents={this.searchForRecents.bind(this)}
selectRecipient={(address, name) =>
this.selectRecipient(address, name, 'contact list')
}
selectRecipient={(address, name) => {
this.selectRecipient(
address,
name,
`${name ? 'contact' : 'recent'} list`,
);
}}
>
{ownedAccounts && ownedAccounts.length > 1 && !userInput && (
<Button