Skip to content

Commit

Permalink
commment update
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemorawski committed Oct 18, 2023
1 parent ad942f6 commit a3f64d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,9 @@ function getDisplayNameForParticipant(accountID, shouldUseShortForm = false, sho
return '';
}
const personalDetails = getPersonalDetailsForAccountID(accountID);
// check if it's an invite account
// this is to check if account is an invite/optimistically created one
// 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 '';
}
Expand Down

0 comments on commit a3f64d6

Please sign in to comment.