Skip to content

Commit

Permalink
Merge pull request #36358 from fedirjh/User-mention-is-shown-as-Hidden
Browse files Browse the repository at this point in the history
[Fix] User mention is shown as Hidden
  • Loading branch information
bondydaa authored Feb 12, 2024
2 parents bbadfcc + 8ca1680 commit eee5bbe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function MentionUserRenderer({style, tnode, TDefaultRenderer, currentUserPersona
let navigationRoute: Route;

if (!isEmpty(htmlAttribAccountID)) {
const user = personalDetails.htmlAttribAccountID;
const user = personalDetails[htmlAttribAccountID];
accountID = parseInt(htmlAttribAccountID, 10);
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
displayNameOrLogin = LocalePhoneNumber.formatPhoneNumber(user?.login ?? '') || user?.displayName || translate('common.hidden');
Expand Down

0 comments on commit eee5bbe

Please sign in to comment.