Skip to content

Commit

Permalink
fix: fix mentions copied on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
koko57 committed Sep 16, 2024
1 parent 096e44e commit eab7d0e
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 @@ -1686,7 +1686,7 @@ function getCardIssuedMessage(reportAction: OnyxEntry<ReportAction>, shouldRende
const assigneeAccountID = (reportAction?.originalMessage as IssueNewCardOriginalMessage)?.assigneeAccountID;
const assigneeDetails = PersonalDetailsUtils.getPersonalDetailsByIDs([assigneeAccountID], currentUserAccountID ?? -1)[0];

const assignee = shouldRenderHTML ? `<mention-user accountID=${assigneeAccountID}></mention-user>` : assigneeDetails?.firstName ?? assigneeDetails.login ?? '';
const assignee = shouldRenderHTML ? `<mention-user accountID="${assigneeAccountID}"/>` : assigneeDetails?.firstName ?? assigneeDetails.login ?? '';
const link = shouldRenderHTML
? `<a href='${environmentURL}/${ROUTES.SETTINGS_WALLET}'>${Localize.translateLocal('cardPage.expensifyCard')}</a>`
: Localize.translateLocal('cardPage.expensifyCard');
Expand Down

0 comments on commit eab7d0e

Please sign in to comment.