From 250b3d549994e702ad8bf60156f3b3355d6db808 Mon Sep 17 00:00:00 2001 From: ryanml Date: Fri, 3 Jun 2022 15:41:05 -0700 Subject: [PATCH] Fixing add recipient flow issue with contact list/recent recipients (#14771) --- .../add-recipient/add-recipient.component.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ui/pages/send/send-content/add-recipient/add-recipient.component.js b/ui/pages/send/send-content/add-recipient/add-recipient.component.js index a46fa7a8b..fa2dbbfef 100644 --- a/ui/pages/send/send-content/add-recipient/add-recipient.component.js +++ b/ui/pages/send/send-content/add-recipient/add-recipient.component.js @@ -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 && (