Skip to content

Commit 3ec735c

Browse files
committed
Try setting actor hint w/ login then displayName
1 parent 0a557bc commit 3ec735c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/home/report/ReportActionItemSingle.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ const showWorkspaceDetails = (reportID) => {
7272

7373
function ReportActionItemSingle(props) {
7474
const actorAccountID = props.action.actorAccountID;
75-
let {displayName} = props.personalDetailsList[actorAccountID] || {};
75+
let {displayName, login} = props.personalDetailsList[actorAccountID] || {};
7676
const {avatar, pendingFields} = props.personalDetailsList[actorAccountID] || {};
77-
let actorHint = displayName.replace(CONST.REGEX.MERGED_ACCOUNT_PREFIX, '');
77+
let actorHint = (login || displayName).replace(CONST.REGEX.MERGED_ACCOUNT_PREFIX, '');
7878
const isWorkspaceActor = ReportUtils.isPolicyExpenseChat(props.report) && !actorAccountID;
7979
let avatarSource = UserUtils.getAvatar(avatar, actorAccountID);
8080

0 commit comments

Comments
 (0)