From d7dfd5b819d07f54f520c7d8b96f4fa69315b1c0 Mon Sep 17 00:00:00 2001 From: bartlomiej obudzinski Date: Wed, 18 Mar 2026 12:12:13 +0100 Subject: [PATCH 1/2] perf: remove phantom receiptTransactions dep from OptionRowLHNData --- src/components/LHNOptionsList/LHNOptionsList.tsx | 1 - src/components/LHNOptionsList/OptionRowLHNData.tsx | 3 +-- src/components/LHNOptionsList/types.ts | 3 --- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/LHNOptionsList/LHNOptionsList.tsx b/src/components/LHNOptionsList/LHNOptionsList.tsx index 57682109a7c2b..dafe2c1a26da0 100644 --- a/src/components/LHNOptionsList/LHNOptionsList.tsx +++ b/src/components/LHNOptionsList/LHNOptionsList.tsx @@ -238,7 +238,6 @@ function LHNOptionsList({style, contentContainerStyles, data, onSelectRow, optio personalDetails={personalDetails ?? {}} transaction={itemTransaction} lastReportActionTransaction={lastReportActionTransaction} - receiptTransactions={transactions} viewMode={optionMode} isOptionFocused={!shouldDisableFocusOptions} lastMessageTextFromReport={lastMessageTextFromReport} diff --git a/src/components/LHNOptionsList/OptionRowLHNData.tsx b/src/components/LHNOptionsList/OptionRowLHNData.tsx index afaaee65c4098..8cb8c6dd0949a 100644 --- a/src/components/LHNOptionsList/OptionRowLHNData.tsx +++ b/src/components/LHNOptionsList/OptionRowLHNData.tsx @@ -34,7 +34,6 @@ function OptionRowLHNData({ preferredLocale = CONST.LOCALES.DEFAULT, policy, invoiceReceiverPolicy, - receiptTransactions, parentReportAction, iouReportReportActions, transaction, @@ -127,7 +126,7 @@ function OptionRowLHNData({ conciergeReportID, iouReportReportActions, transaction, - receiptTransactions, + invoiceReceiverPolicy, lastMessageTextFromReport, card, diff --git a/src/components/LHNOptionsList/types.ts b/src/components/LHNOptionsList/types.ts index 41a3d5dd6f4e5..7172ffc25da46 100644 --- a/src/components/LHNOptionsList/types.ts +++ b/src/components/LHNOptionsList/types.ts @@ -99,9 +99,6 @@ type OptionRowLHNDataProps = { /** Whether a report contains a draft */ hasDraftComment: boolean; - /** The receipt transaction from the parent report action */ - receiptTransactions: OnyxCollection; - /** The reportID of the report */ reportID: string; From 9b3f3cc581ba6605538f4aafb724979e22f99212 Mon Sep 17 00:00:00 2001 From: bartlomiej obudzinski Date: Fri, 20 Mar 2026 10:03:45 +0100 Subject: [PATCH 2/2] perf: remove leftover blank line in useMemo deps --- src/components/LHNOptionsList/OptionRowLHNData.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/LHNOptionsList/OptionRowLHNData.tsx b/src/components/LHNOptionsList/OptionRowLHNData.tsx index 8cb8c6dd0949a..6cdcc29f4b0ff 100644 --- a/src/components/LHNOptionsList/OptionRowLHNData.tsx +++ b/src/components/LHNOptionsList/OptionRowLHNData.tsx @@ -126,7 +126,6 @@ function OptionRowLHNData({ conciergeReportID, iouReportReportActions, transaction, - invoiceReceiverPolicy, lastMessageTextFromReport, card,