diff --git a/src/components/UserComboBox.tsx b/src/components/UserComboBox.tsx index 4cf913e76..c8e032603 100644 --- a/src/components/UserComboBox.tsx +++ b/src/components/UserComboBox.tsx @@ -49,10 +49,9 @@ export const UserComboBox = React.forwardRef( } const current = prepareUserDataFromActivity(value); - if (current != null) { - const existingName = getUserName(current); - return existingName; + if (current != null) { + return getUserName(current); } return query; @@ -78,7 +77,9 @@ export const UserComboBox = React.forwardRef( if (value) { const current = prepareUserDataFromActivity(value); - return current?.name || current?.email || text; + if (current) { + return getUserName(current); + } } return text;