diff --git a/plugins/woocommerce-admin/packages/components/src/search/autocompleters/usernames.js b/plugins/woocommerce-admin/packages/components/src/search/autocompleters/usernames.js index a2c80b7d965..7e7abc02fef 100644 --- a/plugins/woocommerce-admin/packages/components/src/search/autocompleters/usernames.js +++ b/plugins/woocommerce-admin/packages/components/src/search/autocompleters/usernames.js @@ -50,10 +50,9 @@ export default { // This is slightly different than gutenberg/Autocomplete, we don't support different methods // of replace/insertion, so we can just return the value. getOptionCompletion( customer ) { - const value = { + return { id: customer.id, label: customer.username, }; - return value; }, };