Skip to content

Commit

Permalink
make const changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pradeepmdk committed Sep 13, 2023
1 parent 1850aa8 commit 03522c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/ReportActionsUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ function getLastVisibleMessage(reportID, actionsToMerge = {}) {
if (isReportMessageAttachment(message)) {
return {
lastMessageTranslationKey: CONST.TRANSLATION_KEYS.ATTACHMENT,
lastMessageText: CONST.TRANSLATION_KEYS.ATTACHMENT,
lastMessageText: CONST.ATTACHMENT_MESSAGE_TEXT,
lastMessageHtml: CONST.TRANSLATION_KEYS.ATTACHMENT,
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/isReportMessageAttachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function isReportMessageAttachment({text, html, translationKey}:
return false;
}

if (translationKey && (text === CONST.ATTACHMENT_MESSAGE_TEXT || text === CONST.TRANSLATION_KEYS.ATTACHMENT)) {
if (translationKey && text === CONST.ATTACHMENT_MESSAGE_TEXT) {
return translationKey === CONST.TRANSLATION_KEYS.ATTACHMENT;
}

Expand Down

0 comments on commit 03522c3

Please sign in to comment.