Skip to content

Commit

Permalink
Merge pull request #49734 from Expensify/georgia-originalMessageLint
Browse files Browse the repository at this point in the history
[getCardIssuedMessage] fix lint error
  • Loading branch information
grgia authored Sep 26, 2024
2 parents b215aa8 + d1b373f commit b930641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportActionsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1728,7 +1728,7 @@ function isCardIssuedAction(reportAction: OnyxEntry<ReportAction>) {
}

function getCardIssuedMessage(reportAction: OnyxEntry<ReportAction>, shouldRenderHTML = false) {
const assigneeAccountID = (reportAction?.originalMessage as IssueNewCardOriginalMessage)?.assigneeAccountID;
const assigneeAccountID = (getOriginalMessage(reportAction) as IssueNewCardOriginalMessage)?.assigneeAccountID;
const assigneeDetails = PersonalDetailsUtils.getPersonalDetailsByIDs([assigneeAccountID], currentUserAccountID ?? -1)[0];

const assignee = shouldRenderHTML ? `<mention-user accountID="${assigneeAccountID}"/>` : assigneeDetails?.firstName ?? assigneeDetails.login ?? '';
Expand Down

0 comments on commit b930641

Please sign in to comment.