Skip to content

Commit

Permalink
Merge pull request Expensify#36584 from FitseTLT/fix-tooltip-display-…
Browse files Browse the repository at this point in the history
…for-contact-with-no-conversation

Fix - A tooltip does not appear above the mentioned user with no conversation history
  • Loading branch information
Julesssss authored Feb 16, 2024
2 parents e3331db + 2d2e05f commit a6fe014
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function BaseUserDetailsTooltip({accountID, fallbackUserDetails, icon, delegateA
const personalDetails = usePersonalDetails();

const userDetails = personalDetails?.[accountID] ?? fallbackUserDetails ?? {};
let userDisplayName = ReportUtils.getDisplayNameForParticipant(accountID) ?? (userDetails.displayName ? userDetails.displayName.trim() : '');
let userDisplayName = ReportUtils.getDisplayNameForParticipant(accountID) || (userDetails.displayName ? userDetails.displayName.trim() : '');
let userLogin = userDetails.login?.trim() && userDetails.login !== userDetails.displayName ? Str.removeSMSDomain(userDetails.login) : '';

let userAvatar = userDetails.avatar;
Expand Down

0 comments on commit a6fe014

Please sign in to comment.