From daf2bb6eeb18dbe7db795ebe0fec2943363b8b1a Mon Sep 17 00:00:00 2001 From: Hans Date: Thu, 20 Jul 2023 18:33:15 +0700 Subject: [PATCH 1/2] fix crash while pressing mention --- src/pages/DetailsPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/DetailsPage.js b/src/pages/DetailsPage.js index 0075a7c1c4d5..4958f66d6e28 100755 --- a/src/pages/DetailsPage.js +++ b/src/pages/DetailsPage.js @@ -102,7 +102,7 @@ function DetailsPage(props) { avatar: UserUtils.getDefaultAvatar(CONST.ACCOUNT_ID.CONCIERGE), }; } else { - const optimisticAccountID = UserUtils.generateAccountID(); + const optimisticAccountID = UserUtils.generateAccountID(login); details = { accountID: optimisticAccountID, login, From 8d55ac8d1605f6e005eef6f3f7981d5dbead7f04 Mon Sep 17 00:00:00 2001 From: Hans Date: Thu, 20 Jul 2023 18:45:11 +0700 Subject: [PATCH 2/2] fix linting --- src/components/LHNOptionsList/OptionRowLHN.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/LHNOptionsList/OptionRowLHN.js b/src/components/LHNOptionsList/OptionRowLHN.js index 0ddff9ec6d8e..c32e77998da5 100644 --- a/src/components/LHNOptionsList/OptionRowLHN.js +++ b/src/components/LHNOptionsList/OptionRowLHN.js @@ -201,7 +201,7 @@ function OptionRowLHN(props) { numberOfLines={1} accessibilityLabel={localize.translate('accessibilityHints.lastChatMessagePreview')} > - {optionItem.isLastMessageDeletedParentAction ? props.translate('parentReportAction.deletedMessage') : optionItem.alternateText} + {optionItem.isLastMessageDeletedParentAction ? localize.translate('parentReportAction.deletedMessage') : optionItem.alternateText} ) : null}