Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
ef190b3
Fix Your spend totals staying stale after offline expense edits.
adamgrzybowski Jun 8, 2026
fabd3fd
Remove redundant YourSpendSection queries barrel
adamgrzybowski Jun 9, 2026
3545edc
Remove unused exports from YourSpendSnapshotUpdate
adamgrzybowski Jun 9, 2026
d767640
Fix ESLint no-unsafe-type-assertion errors in Your spend snapshot test
adamgrzybowski Jun 11, 2026
215db73
Patch Your spend totals only for amount edits, not currency changes
adamgrzybowski Jun 11, 2026
009264f
Merge branch 'main' into @adamgrzybowski/fix-offline-your-spend
adamgrzybowski Jun 11, 2026
6831b5f
Add Your spend report-move snapshot helper and tests
adamgrzybowski Jun 12, 2026
a377443
Patch Your spend totals on retract, unapprove and submit
adamgrzybowski Jun 12, 2026
33aabfd
Patch Your spend totals on delete, reject and cancel payment
adamgrzybowski Jun 12, 2026
421fed6
Fix Your spend offline patches for multi-currency reports
adamgrzybowski Jun 12, 2026
5a2979e
Merge branch 'main' into @adamgrzybowski/fix-offline-your-spend
adamgrzybowski Jun 12, 2026
a7d3e35
Merge branch 'main' into @adamgrzybowski/fix-offline-your-spend
adamgrzybowski Jun 17, 2026
fa6b8ba
Patch Your spend totals on approve
adamgrzybowski Jun 17, 2026
c3d8ad1
Patch Your spend totals on report-level reject
adamgrzybowski Jun 17, 2026
6035a7a
Patch Your spend snapshot count alongside total
adamgrzybowski Jun 17, 2026
75daafd
Merge branch 'main' into @adamgrzybowski/fix-offline-your-spend
adamgrzybowski Jun 18, 2026
2bf9c54
Fix Your spend offline patch using convertedAmount in wrong currency
adamgrzybowski Jun 18, 2026
52e56dd
Fix Your spend section not appearing when submitting first report off…
adamgrzybowski Jun 19, 2026
a5d9074
Patch Your spend "Awaiting approval" total when splitting a submitted…
adamgrzybowski Jun 19, 2026
4e6f872
Fix Your spend offline total sign and empty Search page after submit
adamgrzybowski Jun 25, 2026
72448a2
Fix Your Spend section disappearing after deleting a split expense of…
adamgrzybowski Jun 25, 2026
f6d66d3
Fix offline Your Spend repaid section after paying reports
adamgrzybowski Jun 25, 2026
f7fbe84
Add SNAPSHOT key to PayMoneyRequest onyxData return type
adamgrzybowski Jun 26, 2026
d6dac62
Merge branch 'main' into @adamgrzybowski/fix-offline-your-spend
adamgrzybowski Jun 29, 2026
f69d9ff
Merge branch 'main' into @adamgrzybowski/fix-offline-your-spend
adamgrzybowski Jul 3, 2026
3a835dd
Trim verbose comments in Your spend snapshot updates
adamgrzybowski Jul 3, 2026
2946111
Sync Your spend snapshot data on transaction removal and bound memory
adamgrzybowski Jul 3, 2026
274a485
Fix Your spend for reimbursable-only split and reimbursable toggle
adamgrzybowski Jul 7, 2026
61f248f
Test Your spend snapshot updates for reimbursable toggle
adamgrzybowski Jul 7, 2026
7a36b36
Supply Your spend patch data via hook scoped to paid-group policies
adamgrzybowski Jul 9, 2026
3622a9b
Merge branch 'main' into @adamgrzybowski/fix-offline-your-spend
adamgrzybowski Jul 9, 2026
eea3c27
Remove unused SnapshotSearch export from YourSpendPatchData
adamgrzybowski Jul 9, 2026
6f1a6ec
Reset Mobile-Expensify submodule pointer to match eorigin/main
adamgrzybowski Jul 15, 2026
e316cc3
Merge remote-tracking branch 'eorigin/main' into @adamgrzybowski/fix-…
adamgrzybowski Jul 15, 2026
cf97be9
Merge branch 'main' into @adamgrzybowski/fix-offline-your-spend
adamgrzybowski Jul 15, 2026
db68a4f
Merge branch 'main' into @adamgrzybowski/fix-offline-your-spend
adamgrzybowski Jul 16, 2026
71120b8
Document Your spend snapshot update types
adamgrzybowski Jul 16, 2026
f547b32
Add tests for paid-group policy helpers in YourSpendQueryUtils
adamgrzybowski Jul 16, 2026
7c5b23f
Add tests for getRepaidReportsSignature and DEW Your spend snapshot g…
adamgrzybowski Jul 16, 2026
ee14b12
Fix Your spend split diff sign to match the snapshot total convention
adamgrzybowski Jul 16, 2026
86ff939
Aggregate Your spend snapshot updates per bulk action
adamgrzybowski Jul 16, 2026
231d923
Narrow paid-group policy selector to Your spend fields
adamgrzybowski Jul 17, 2026
5b07439
Merge branch 'main' into @adamgrzybowski/fix-offline-your-spend
adamgrzybowski Jul 17, 2026
4393d0c
Merge remote-tracking branch 'eorigin/main' into cursor/9e17752f
adamgrzybowski Jul 20, 2026
5b266b1
Add iouReportOwnerLogin to getUpdateMoneyRequestParams test calls aft…
adamgrzybowski Jul 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import type {PopoverMenuItem} from '@components/PopoverMenu';
import {ReportSubmitToPopoverAnchor} from '@components/ReportSubmitToPopoverAnchor';
import {useSearchQueryContext, useSearchResultsContext} from '@components/Search/SearchContext';
import type {PaymentActionParams} from '@components/SettlementButton/types';
import {useYourSpendPatchDataGetter} from '@components/YourSpendPatchDataProvider';

import useActiveAdminPolicies from '@hooks/useActiveAdminPolicies';
import {useCurrencyListActions} from '@hooks/useCurrencyList';
Expand Down Expand Up @@ -171,6 +172,7 @@ function MoneyReportHeaderSecondaryActionsInner({reportID, primaryAction, isRepo
const {currentSearchQueryJSON, currentSearchKey} = useSearchQueryContext();
const {currentSearchResults} = useSearchResultsContext();
const shouldCalculateTotals = useSearchShouldCalculateTotals(currentSearchKey, currentSearchQueryJSON?.hash, true);
const getYourSpendPatchData = useYourSpendPatchDataGetter();

const isInvoiceReport = isInvoiceReportUtil(moneyRequestReport);
const isAnyTransactionOnHold = hasHeldExpensesReportUtils(allTransactions);
Expand Down Expand Up @@ -244,6 +246,7 @@ function MoneyReportHeaderSecondaryActionsInner({reportID, primaryAction, isRepo
amountOwed,
ownerBillingGracePeriodEnd,
methodID: type === CONST.IOU.PAYMENT_TYPE.VBBA ? methodID : undefined,
yourSpendPatchData: getYourSpendPatchData(),
onPaid: () => {
startAnimation();
},
Expand Down Expand Up @@ -457,6 +460,7 @@ function MoneyReportHeaderSecondaryActionsInner({reportID, primaryAction, isRepo
ownerBillingGracePeriodEnd,
delegateEmail,
isTrackIntentUser,
yourSpendPatchData: getYourSpendPatchData(),
ownerLogin: submitterLogin,
});
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {usePaymentAnimationsContext} from '@components/PaymentAnimationsContext'
import {useSearchQueryContext, useSearchResultsContext} from '@components/Search/SearchContext';
import AnimatedSettlementButton from '@components/SettlementButton/AnimatedSettlementButton';
import type {PaymentActionParams} from '@components/SettlementButton/types';
import {useYourSpendPatchDataGetter} from '@components/YourSpendPatchDataProvider';

import {useCurrencyListActions} from '@hooks/useCurrencyList';
import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails';
Expand Down Expand Up @@ -124,6 +125,7 @@ function PayPrimaryAction({reportID, chatReportID}: PayPrimaryActionProps) {
const {currentSearchQueryJSON, currentSearchKey} = useSearchQueryContext();
const {currentSearchResults} = useSearchResultsContext();
const shouldCalculateTotals = useSearchShouldCalculateTotals(currentSearchKey, currentSearchQueryJSON?.hash, true);
const getYourSpendPatchData = useYourSpendPatchDataGetter();

const {openHoldMenu} = useMoneyReportHeaderModals();

Expand Down Expand Up @@ -185,6 +187,7 @@ function PayPrimaryAction({reportID, chatReportID}: PayPrimaryActionProps) {
amountOwed,
ownerBillingGracePeriodEnd,
methodID: type === CONST.IOU.PAYMENT_TYPE.VBBA ? methodID : undefined,
yourSpendPatchData: getYourSpendPatchData(),
onPaid: startAnimation,
chatReportActions: getChatReportActions(false),
delegateAccountID,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {useMoneyReportHeaderModals} from '@components/MoneyReportHeaderModalsCon
import {usePaymentAnimationsContext} from '@components/PaymentAnimationsContext';
import {ReportSubmitToPopoverAnchor, useOpenReportSubmitToPopover} from '@components/ReportSubmitToPopoverAnchor';
import {useSearchQueryContext, useSearchResultsContext} from '@components/Search/SearchContext';
import {useYourSpendPatchDataGetter} from '@components/YourSpendPatchDataProvider';

import useConfirmModal from '@hooks/useConfirmModal';
import useConfirmPendingRTERAndProceed from '@hooks/useConfirmPendingRTERAndProceed';
Expand Down Expand Up @@ -127,6 +128,7 @@ function SubmitPrimaryActionContent({reportID}: SubmitPrimaryActionProps) {
const {currentSearchQueryJSON, currentSearchKey} = useSearchQueryContext();
const {currentSearchResults} = useSearchResultsContext();
const shouldCalculateTotals = useSearchShouldCalculateTotals(currentSearchKey, currentSearchQueryJSON?.hash, true);
const getYourSpendPatchData = useYourSpendPatchDataGetter();

const expensifyIcons = useMemoizedLazyExpensifyIcons(['Send', 'Document']);

Expand Down Expand Up @@ -165,6 +167,7 @@ function SubmitPrimaryActionContent({reportID}: SubmitPrimaryActionProps) {
expenseReportCurrentNextStepDeprecated: nextStep,
userBillingGracePeriodEnds,
amountOwed,
yourSpendPatchData: getYourSpendPatchData(),
// Open the PDF download modal only once submitReport commits to running (it fires onSubmitted after its
// billing-restriction guard), so a restricted account that bails out early doesn't leave the modal stuck.
onSubmitted: () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {useDelegateNoAccessActions, useDelegateNoAccessState} from '@components/DelegateNoAccessModalProvider';
import {useMoneyReportHeaderModals} from '@components/MoneyReportHeaderModalsContext';
import {useYourSpendPatchDataGetter} from '@components/YourSpendPatchDataProvider';

import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails';
import useOnyx from '@hooks/useOnyx';
Expand Down Expand Up @@ -38,6 +39,7 @@ function useConfirmApproval(reportID: string | undefined, startApprovedAnimation
const [ownerLogin] = useOnyx(ONYXKEYS.PERSONAL_DETAILS_LIST, {selector: personalDetailsLoginSelector(moneyRequestReport?.ownerAccountID)});
const {transactions: reportTransactions} = useTransactionsAndViolationsForReport(moneyRequestReport?.reportID);
const [isTrackIntentUser] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {selector: isTrackIntentUserSelector});
const getYourSpendPatchData = useYourSpendPatchDataGetter();

const isASAPSubmitBetaEnabled = isBetaEnabled(CONST.BETAS.ASAP_SUBMIT);
const hasViolations = hasViolationsReportUtils(moneyRequestReport?.reportID, allTransactionViolations, accountID, email ?? '');
Expand Down Expand Up @@ -69,6 +71,7 @@ function useConfirmApproval(reportID: string | undefined, startApprovedAnimation
ownerBillingGracePeriodEnd,
ownerLogin,
full: true,
yourSpendPatchData: getYourSpendPatchData(),
onApproved: startApprovedAnimation,
delegateEmail,
isTrackIntentUser,
Expand Down
3 changes: 3 additions & 0 deletions src/components/MoneyRequestHeaderSecondaryActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ import {ModalActions} from './Modal/Global/ModalContext';
import {usePersonalDetails} from './OnyxListItemProvider';
import {useSearchQueryContext, useSearchSelectionActions} from './Search/SearchContext';
import {useWideRHPState} from './WideRHPContextProvider';
import {useYourSpendPatchDataGetter} from './YourSpendPatchDataProvider';

type MoneyRequestHeaderSecondaryActionsProps = {
/** The report ID for the current transaction thread */
Expand All @@ -114,6 +115,7 @@ function MoneyRequestHeaderSecondaryActions({reportID, onBackButtonPress}: Money
const {login: currentUserLogin, accountID, localCurrencyCode} = useCurrentUserPersonalDetails();
const delegateAccountID = useDelegateAccountID();
const personalDetails = usePersonalDetails();
const getYourSpendPatchData = useYourSpendPatchDataGetter();

const expensifyIcons = useMemoizedLazyExpensifyIcons([
'ArrowCollapse',
Expand Down Expand Up @@ -490,6 +492,7 @@ function MoneyRequestHeaderSecondaryActions({reportID, onBackButtonPress}: Money
currentUserAccountID: accountID,
currentUserEmail: currentUserLogin ?? '',
policy: iouPolicy,
yourSpendPatchData: getYourSpendPatchData(),
});
} else {
if (shouldOpenSplitExpenseEditFlowOnDelete([transaction.transactionID])) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {useDelegateNoAccessActions, useDelegateNoAccessState} from '@components/DelegateNoAccessModalProvider';
import AnimatedSettlementButton from '@components/SettlementButton/AnimatedSettlementButton';
import type {PaymentActionParams} from '@components/SettlementButton/types';
import {useYourSpendPatchDataGetter} from '@components/YourSpendPatchDataProvider';

import {useCurrencyListActions} from '@hooks/useCurrencyList';
import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails';
Expand Down Expand Up @@ -67,6 +68,7 @@ function PayActionButton() {
const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED);
const [betas] = useOnyx(ONYXKEYS.BETAS);
const [isSelfTourViewed] = useOnyx(ONYXKEYS.NVP_ONBOARDING, {selector: hasSeenTourSelector});
const getYourSpendPatchData = useYourSpendPatchDataGetter();

const [transactionViolations] = useReportTransactionViolations(transactions);
const isTrackIntentUser = isTrackOnboardingChoice(introSelected?.choice);
Expand Down Expand Up @@ -135,6 +137,7 @@ function PayActionButton() {
amountOwed,
ownerBillingGracePeriodEnd,
methodID: type === CONST.IOU.PAYMENT_TYPE.VBBA ? methodID : undefined,
yourSpendPatchData: getYourSpendPatchData(),
onPaid: startAnimation,
chatReportActions: getChatReportActions(false),
delegateAccountID,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import AnimatedSubmitButton from '@components/AnimatedSubmitButton';
import {ReportSubmitToPopoverAnchor, useOpenReportSubmitToPopover} from '@components/ReportSubmitToPopoverAnchor';
import {useYourSpendPatchDataGetter} from '@components/YourSpendPatchDataProvider';

import useConfirmModal from '@hooks/useConfirmModal';
import useConfirmPendingRTERAndProceed from '@hooks/useConfirmPendingRTERAndProceed';
Expand Down Expand Up @@ -69,6 +70,7 @@ function SubmitActionButtonContent() {
} = useReportPreviewActionButtonData(iouReportID);
const [reportActions] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${iouReportID}`);
const [isTrackIntentUser] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {selector: isTrackIntentUserSelector});
const getYourSpendPatchData = useYourSpendPatchDataGetter();

const [transactionViolations] = useReportTransactionViolations(transactions);

Expand Down Expand Up @@ -113,6 +115,7 @@ function SubmitActionButtonContent() {
expenseReportCurrentNextStepDeprecated: iouReportNextStep,
userBillingGracePeriodEnds,
amountOwed,
yourSpendPatchData: getYourSpendPatchData(),
onSubmitted: startSubmittingAnimation,
ownerBillingGracePeriodEnd,
delegateEmail,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* handling delegate-access restrictions, held expenses, and the approveMoneyRequest call.
*/
import {useDelegateNoAccessActions, useDelegateNoAccessState} from '@components/DelegateNoAccessModalProvider';
import {useYourSpendPatchDataGetter} from '@components/YourSpendPatchDataProvider';

import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails';
import useOnyx from '@hooks/useOnyx';
Expand Down Expand Up @@ -31,6 +32,7 @@ function useConfirmApproveReportAction(actionButtonData: ReturnType<typeof useRe
const {startApprovedAnimation, onHoldMenuOpen} = useReportPreviewActions();
const [betas] = useOnyx(ONYXKEYS.BETAS);
const [isTrackIntentUser] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {selector: isTrackIntentUserSelector});
const getYourSpendPatchData = useYourSpendPatchDataGetter();

const {iouReport, policy, ownerLogin, userBillingGracePeriodEnds, iouReportNextStep, amountOwed, ownerBillingGracePeriodEnd, delegateEmail} = actionButtonData;

Expand All @@ -54,6 +56,7 @@ function useConfirmApproveReportAction(actionButtonData: ReturnType<typeof useRe
ownerBillingGracePeriodEnd,
ownerLogin,
full: true,
yourSpendPatchData: getYourSpendPatchData(),
onApproved: startApprovedAnimation,
delegateEmail,
isTrackIntentUser,
Expand Down
3 changes: 3 additions & 0 deletions src/components/ReportActionItem/MoneyRequestView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Text from '@components/Text';
import UserPills from '@components/UserPills';
import ViolationMessages from '@components/ViolationMessages';
import {useWideRHPState} from '@components/WideRHPContextProvider';
import {useYourSpendPatchDataGetter} from '@components/YourSpendPatchDataProvider';

import useActiveRoute from '@hooks/useActiveRoute';
import useAttendees from '@hooks/useAttendees';
Expand Down Expand Up @@ -282,6 +283,7 @@ function MoneyRequestView({
const personalDetailsList = usePersonalDetails();
const currentUserAccountIDParam = currentUserPersonalDetails.accountID;
const currentUserEmailParam = currentUserPersonalDetails.login ?? '';
const getYourSpendPatchData = useYourSpendPatchDataGetter();
const {isBetaEnabled} = usePermissions();
const isASAPSubmitBetaEnabled = isBetaEnabled(CONST.BETAS.ASAP_SUBMIT);
const isP2PDistanceRequest = isCustomUnitRateIDForP2P(transaction);
Expand Down Expand Up @@ -705,6 +707,7 @@ function MoneyRequestView({
delegateAccountID,
reportPolicyTags,
isTrackIntentUser,
yourSpendPatchData: getYourSpendPatchData(),
});
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {useDelegateNoAccessActions, useDelegateNoAccessState} from '@components/
import {SearchScopeProvider} from '@components/Search/SearchScopeProvider';
import SettlementButton from '@components/SettlementButton';
import type {PaymentActionParams} from '@components/SettlementButton/types';
import {useYourSpendPatchDataGetter} from '@components/YourSpendPatchDataProvider';

import {useCurrencyListActions} from '@hooks/useCurrencyList';
import useNetwork from '@hooks/useNetwork';
Expand Down Expand Up @@ -45,6 +46,7 @@ function PayActionCell({isLoading, policyID, reportID, hash, amount, shouldDisab
const {isDelegateAccessRestricted} = useDelegateNoAccessState();
const {showDelegateNoAccessModal} = useDelegateNoAccessActions();
const [iouReport, transactions] = useReportWithTransactionsAndViolations(reportID);
const getYourSpendPatchData = useYourSpendPatchDataGetter();
const policy = usePolicy(policyID);
const [bankAccountList] = useOnyx(ONYXKEYS.BANK_ACCOUNT_LIST);
const [allReports] = useOnyx(ONYXKEYS.COLLECTION.REPORT);
Expand Down Expand Up @@ -155,6 +157,7 @@ function PayActionCell({isLoading, policyID, reportID, hash, amount, shouldDisab
ownerBillingGracePeriodEnd,
methodID: type === CONST.IOU.PAYMENT_TYPE.VBBA ? methodID : undefined,
additionalOnyxData,
yourSpendPatchData: getYourSpendPatchData(),
chatReportActions: allReportActions?.[`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${getNonEmptyStringOnyxID(chatReport?.reportID)}`],
delegateAccountID,
isTrackIntentUser,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {useRowSelection} from '@components/Search/SearchSelectionProvider';
import BaseListItem from '@components/SelectionList/ListItem/BaseListItem';
import type {ListItem} from '@components/SelectionList/types';
import Text from '@components/Text';
import {useYourSpendPatchDataGetter} from '@components/YourSpendPatchDataProvider';

import useAnimatedHighlightStyle from '@hooks/useAnimatedHighlightStyle';
import useConfirmModal from '@hooks/useConfirmModal';
Expand Down Expand Up @@ -218,6 +219,7 @@ function ExpenseReportListItemInner<TItem extends ListItem>({
const openReportSubmitToPopover = useOpenReportSubmitToPopover();
const {shouldDisableSearchSubmitPress, consumeIgnoreNextSearchSubmitPress} = useSearchSubmitPopoverGuard();
const {transactions: reportTransactions, violations: reportViolations} = useTransactionsAndViolationsForReport(reportItem.reportID);
const getYourSpendPatchData = useYourSpendPatchDataGetter();
const liveReportTransactions = useMemo(() => Object.values(reportTransactions), [reportTransactions]);

// Recompute the violations badge from live data at the row, replacing the screen-level
Expand Down Expand Up @@ -300,6 +302,7 @@ function ExpenseReportListItemInner<TItem extends ListItem>({
delegateEmail,
delegateAccountID,
isTrackIntentUser,
yourSpendPatchData: getYourSpendPatchData(),
});
}, [
currentSearchHash,
Expand Down Expand Up @@ -340,6 +343,7 @@ function ExpenseReportListItemInner<TItem extends ListItem>({
delegateEmail,
delegateAccountID,
isTrackIntentUser,
getYourSpendPatchData,
]);

const handleSelectionButtonPress = useCallback(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
import {useSearchQueryContext, useSearchResultsContext} from '@components/Search/SearchContext';
import {useRowSelection} from '@components/Search/SearchSelectionProvider';
import type {ListItem} from '@components/SelectionList/types';
import {useYourSpendPatchDataGetter} from '@components/YourSpendPatchDataProvider';

import useConfirmModal from '@hooks/useConfirmModal';
import {useMemoizedLazyExpensifyIcons} from '@hooks/useLazyAsset';
Expand Down Expand Up @@ -296,6 +297,7 @@ function ReportListItemHeaderInner<TItem extends ListItem>({

const openReportSubmitToPopover = useOpenReportSubmitToPopover();
const {shouldDisableSearchSubmitPress, consumeIgnoreNextSearchSubmitPress} = useSearchSubmitPopoverGuard();
const getYourSpendPatchData = useYourSpendPatchDataGetter();

const handleOnButtonPress = (event?: ModifiedMouseEvent) => {
handleActionButtonPress({
Expand Down Expand Up @@ -332,6 +334,7 @@ function ReportListItemHeaderInner<TItem extends ListItem>({
delegateEmail,
delegateAccountID,
isTrackIntentUser,
yourSpendPatchData: getYourSpendPatchData(),
});
};
return !isLargeScreenWidth ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {useSearchQueryContext, useSearchResultsContext} from '@components/Search
import type {TransactionListItemProps, TransactionListItemType} from '@components/Search/SearchList/ListItem/types';
import useLiveRowCapabilities from '@components/Search/SearchList/ListItem/useLiveRowCapabilities';
import type {ListItem} from '@components/SelectionList/types';
import {useYourSpendPatchDataGetter} from '@components/YourSpendPatchDataProvider';

import useConfirmModal from '@hooks/useConfirmModal';
import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails';
Expand Down Expand Up @@ -198,6 +199,7 @@ function TransactionListItemInner<TItem extends ListItem>({
const {showConfirmModal} = useConfirmModal();
const openReportSubmitToPopover = useOpenReportSubmitToPopover();
const {shouldDisableSearchSubmitPress, consumeIgnoreNextSearchSubmitPress} = useSearchSubmitPopoverGuard();
const getYourSpendPatchData = useYourSpendPatchDataGetter();

const handleActionButtonPress = (event?: Parameters<typeof onSelectRow>[2]) => {
handleActionButtonPressUtil({
Expand Down Expand Up @@ -235,6 +237,7 @@ function TransactionListItemInner<TItem extends ListItem>({
delegateEmail,
delegateAccountID,
isTrackIntentUser,
yourSpendPatchData: getYourSpendPatchData(),
});
};

Expand Down
Loading
Loading