Skip to content

Commit

Permalink
getDisplayNameForParticipant optimistic personal details improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemorawski committed Oct 19, 2023
1 parent 9ac720f commit 20d20dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ function getDisplayNameForParticipant(accountID, shouldUseShortForm = false, sho
// and prevent from falling back to 'Hidden', so a correct value is shown
// when searching for a new user
if (lodashGet(personalDetails, 'isOptimisticPersonalDetail') === true) {
return '';
return personalDetails.login || '';
}
const longName = personalDetails.displayName;
const shortName = personalDetails.firstName || longName;
Expand Down

0 comments on commit 20d20dc

Please sign in to comment.