Skip to content

Commit

Permalink
Try setting actor hint w/ login then displayName
Browse files Browse the repository at this point in the history
  • Loading branch information
Beamanator committed Jul 4, 2023
1 parent 0a557bc commit 3ec735c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/home/report/ReportActionItemSingle.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ const showWorkspaceDetails = (reportID) => {

function ReportActionItemSingle(props) {
const actorAccountID = props.action.actorAccountID;
let {displayName} = props.personalDetailsList[actorAccountID] || {};
let {displayName, login} = props.personalDetailsList[actorAccountID] || {};
const {avatar, pendingFields} = props.personalDetailsList[actorAccountID] || {};
let actorHint = displayName.replace(CONST.REGEX.MERGED_ACCOUNT_PREFIX, '');
let actorHint = (login || displayName).replace(CONST.REGEX.MERGED_ACCOUNT_PREFIX, '');
const isWorkspaceActor = ReportUtils.isPolicyExpenseChat(props.report) && !actorAccountID;
let avatarSource = UserUtils.getAvatar(avatar, actorAccountID);

Expand Down

0 comments on commit 3ec735c

Please sign in to comment.