From 9c58773d18f6cdf1bfdfa7e77bb801a6324bf02c Mon Sep 17 00:00:00 2001 From: Linh Date: Sun, 15 Mar 2026 10:12:54 +0700 Subject: [PATCH 1/8] refactor: make createDraftTransactionAndNavigateToParticipantSelector pure function receive transaction --- src/libs/ReportUtils.ts | 4 +++- src/pages/ReportDetailsPage.tsx | 3 +++ src/pages/inbox/report/PureReportActionItem.tsx | 6 ++++++ tests/actions/IOUTest.ts | 5 +++++ tests/unit/ReportUtilsTest.ts | 9 +++++++++ 5 files changed, 26 insertions(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 22eb7007262f0..3c2d9a74edf10 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -11229,6 +11229,7 @@ type CreateDraftTransactionParams = { amountOwed: OnyxEntry; isRestrictedToPreferredPolicy?: boolean; preferredPolicyID?: string; + transaction?: OnyxEntry; }; function createDraftTransactionAndNavigateToParticipantSelector({ @@ -11243,12 +11244,13 @@ function createDraftTransactionAndNavigateToParticipantSelector({ amountOwed, isRestrictedToPreferredPolicy = false, preferredPolicyID, + transaction: transactionParam, }: CreateDraftTransactionParams): void { if (!transactionID || !reportID) { return; } - const transaction = deprecatedAllTransactions?.[`${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}`] ?? ({} as Transaction); + const transaction = transactionParam ?? ({} as Transaction); const reportActions = allReportActions?.[`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${reportID}`] ?? ([] as ReportAction[]); if (!transaction || !reportActions) { diff --git a/src/pages/ReportDetailsPage.tsx b/src/pages/ReportDetailsPage.tsx index da4bb7a036755..87db7da9ad8fc 100644 --- a/src/pages/ReportDetailsPage.tsx +++ b/src/pages/ReportDetailsPage.tsx @@ -464,6 +464,7 @@ function ReportDetailsPage({policy, report, route, reportMetadata}: ReportDetail amountOwed, isRestrictedToPreferredPolicy, preferredPolicyID, + transaction: iouTransaction, }); }, }); @@ -485,6 +486,7 @@ function ReportDetailsPage({policy, report, route, reportMetadata}: ReportDetail activePolicy, userBillingGraceEndPeriodCollection, amountOwed, + transaction: iouTransaction, }); }, }); @@ -505,6 +507,7 @@ function ReportDetailsPage({policy, report, route, reportMetadata}: ReportDetail activePolicy, userBillingGraceEndPeriodCollection, amountOwed, + transaction: iouTransaction, }); }, }); diff --git a/src/pages/inbox/report/PureReportActionItem.tsx b/src/pages/inbox/report/PureReportActionItem.tsx index e6a64ecb1aa46..7aab1174ad391 100644 --- a/src/pages/inbox/report/PureReportActionItem.tsx +++ b/src/pages/inbox/report/PureReportActionItem.tsx @@ -579,6 +579,8 @@ function PureReportActionItem({ const [childReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${getNonEmptyStringOnyxID(action.childReportID)}`); const [chatReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${getNonEmptyStringOnyxID(report?.chatReportID)}`); + const trackExpenseTransactionID = isActionableTrackExpense(action) ? getOriginalMessage(action)?.transactionID : undefined; + const [trackExpenseTransaction] = useOnyx(`${ONYXKEYS.COLLECTION.TRANSACTION}${getNonEmptyStringOnyxID(trackExpenseTransactionID)}`); const highlightedBackgroundColorIfNeeded = useMemo( // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing @@ -951,6 +953,7 @@ function PureReportActionItem({ amountOwed, isRestrictedToPreferredPolicy, preferredPolicyID, + transaction: trackExpenseTransaction, }); }, }, @@ -972,6 +975,7 @@ function PureReportActionItem({ activePolicy, userBillingGraceEndPeriodCollection, amountOwed, + transaction: trackExpenseTransaction, }); }, }, @@ -989,6 +993,7 @@ function PureReportActionItem({ activePolicy, userBillingGraceEndPeriodCollection, amountOwed, + transaction: trackExpenseTransaction, }); }, }, @@ -1135,6 +1140,7 @@ function PureReportActionItem({ personalPolicyID, userBillingGraceEndPeriodCollection, amountOwed, + trackExpenseTransaction, ]); /** diff --git a/tests/actions/IOUTest.ts b/tests/actions/IOUTest.ts index b578ad5498138..943cc7e8c79a9 100644 --- a/tests/actions/IOUTest.ts +++ b/tests/actions/IOUTest.ts @@ -637,6 +637,7 @@ describe('actions/IOU', () => { activePolicy: undefined, userBillingGraceEndPeriodCollection: undefined, amountOwed: 0, + transaction, }); await waitForBatchedUpdates(); @@ -1210,6 +1211,7 @@ describe('actions/IOU', () => { activePolicy: undefined, userBillingGraceEndPeriodCollection: undefined, amountOwed: 0, + transaction: createdTransaction, }); await waitForBatchedUpdates(); @@ -1866,6 +1868,7 @@ describe('actions/IOU', () => { activePolicy: undefined, userBillingGraceEndPeriodCollection: undefined, amountOwed: 0, + transaction: transactionToCategorize, }); await waitForBatchedUpdates(); @@ -1914,6 +1917,7 @@ describe('actions/IOU', () => { activePolicy: undefined, userBillingGraceEndPeriodCollection: undefined, amountOwed: 0, + transaction: originalTransaction, }); await waitForBatchedUpdates(); @@ -1982,6 +1986,7 @@ describe('actions/IOU', () => { allTransactionDrafts: {}, activePolicy: undefined, userBillingGraceEndPeriodCollection: undefined, + transaction, amountOwed: 0, }); await waitForBatchedUpdates(); diff --git a/tests/unit/ReportUtilsTest.ts b/tests/unit/ReportUtilsTest.ts index 2924aad985fb0..aacf889658212 100644 --- a/tests/unit/ReportUtilsTest.ts +++ b/tests/unit/ReportUtilsTest.ts @@ -12911,6 +12911,7 @@ describe('ReportUtils', () => { activePolicy, userBillingGraceEndPeriodCollection: undefined, amountOwed: 1, + transaction, }); // Then it should navigate to the restricted action page @@ -12946,6 +12947,7 @@ describe('ReportUtils', () => { activePolicy, userBillingGraceEndPeriodCollection, amountOwed: 0, + transaction, }); // Then it should navigate to the restricted action page @@ -12984,6 +12986,7 @@ describe('ReportUtils', () => { activePolicy, userBillingGraceEndPeriodCollection: undefined, amountOwed: 0, + transaction, }); // Then it should navigate to the category step @@ -13024,6 +13027,7 @@ describe('ReportUtils', () => { activePolicy: undefined, userBillingGraceEndPeriodCollection: undefined, amountOwed: 0, + transaction, }); // Then it should automatically pick the available policy and navigate to the category step @@ -13051,6 +13055,7 @@ describe('ReportUtils', () => { activePolicy: undefined, userBillingGraceEndPeriodCollection: undefined, amountOwed: 0, + transaction, }); // Then it should navigate to the upgrade page because no policies were found to categorize with @@ -13099,6 +13104,7 @@ describe('ReportUtils', () => { activePolicy: undefined, userBillingGraceEndPeriodCollection: undefined, amountOwed: 0, + transaction, }); // Then it should navigate to the upgrade page because it's ambiguous which policy to use @@ -13143,6 +13149,7 @@ describe('ReportUtils', () => { activePolicy, userBillingGraceEndPeriodCollection: undefined, amountOwed: 0, + transaction, }); // Then it should log a warning and not navigate @@ -13185,6 +13192,7 @@ describe('ReportUtils', () => { activePolicy, userBillingGraceEndPeriodCollection: undefined, amountOwed: 0, + transaction, }); // Then it should NOT navigate to restricted action page, but to category step @@ -13219,6 +13227,7 @@ describe('ReportUtils', () => { activePolicy, userBillingGraceEndPeriodCollection: undefined, amountOwed: 50, + transaction, }); // Then it should navigate to restricted action page From 29f2b1af6b6ad73d3c65a6843abacaa8ac23e82d Mon Sep 17 00:00:00 2001 From: Linh Date: Sun, 15 Mar 2026 10:13:35 +0700 Subject: [PATCH 2/8] refactor: make createDraftTransactionAndNavigateToParticipantSelector pure function receive transaction --- src/libs/ReportUtils.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 3c2d9a74edf10..9b4aa30a5178d 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -11244,13 +11244,12 @@ function createDraftTransactionAndNavigateToParticipantSelector({ amountOwed, isRestrictedToPreferredPolicy = false, preferredPolicyID, - transaction: transactionParam, + transaction, }: CreateDraftTransactionParams): void { if (!transactionID || !reportID) { return; } - const transaction = transactionParam ?? ({} as Transaction); const reportActions = allReportActions?.[`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${reportID}`] ?? ([] as ReportAction[]); if (!transaction || !reportActions) { From d68e39949dc9633aa04efae903348e529cc98a81 Mon Sep 17 00:00:00 2001 From: Linh Date: Sun, 15 Mar 2026 10:15:20 +0700 Subject: [PATCH 3/8] refactor: make transaction required --- src/libs/ReportUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 9b4aa30a5178d..32a9c6533db87 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -11229,7 +11229,7 @@ type CreateDraftTransactionParams = { amountOwed: OnyxEntry; isRestrictedToPreferredPolicy?: boolean; preferredPolicyID?: string; - transaction?: OnyxEntry; + transaction: OnyxEntry; }; function createDraftTransactionAndNavigateToParticipantSelector({ From 590ac899c8241b2bfe103518bff45b2d9d71f286 Mon Sep 17 00:00:00 2001 From: Linh Date: Thu, 19 Mar 2026 21:56:02 +0700 Subject: [PATCH 4/8] chore: typecheck fail --- tests/actions/IOUTest.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/actions/IOUTest.ts b/tests/actions/IOUTest.ts index 80521cfe8b36f..ea8b4734376f5 100644 --- a/tests/actions/IOUTest.ts +++ b/tests/actions/IOUTest.ts @@ -1928,6 +1928,7 @@ describe('actions/IOU', () => { it('should not create draft transaction when transactionID is undefined', async () => { // Given a selfDM report const selfDMReport = createRandomReport(1, CONST.REPORT.CHAT_TYPE.SELF_DM); + const transaction: Transaction = {...createRandomTransaction(1), transactionID: 'test-transaction'}; await Onyx.set(`${ONYXKEYS.COLLECTION.REPORT}${selfDMReport.reportID}`, selfDMReport); // When createDraftTransactionAndNavigateToParticipantSelector is called with undefined transactionID @@ -1941,6 +1942,7 @@ describe('actions/IOU', () => { activePolicy: undefined, userBillingGraceEndPeriods: undefined, amountOwed: 0, + transaction, }); await waitForBatchedUpdates(); From e652d3cf905da52c256d9500bd91a01605912f36 Mon Sep 17 00:00:00 2001 From: Linh Date: Thu, 19 Mar 2026 22:37:08 +0700 Subject: [PATCH 5/8] test: add test cover case transaction is undefine --- tests/unit/ReportUtilsTest.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/unit/ReportUtilsTest.ts b/tests/unit/ReportUtilsTest.ts index bbab8c2df688f..8d70e36238700 100644 --- a/tests/unit/ReportUtilsTest.ts +++ b/tests/unit/ReportUtilsTest.ts @@ -13193,6 +13193,28 @@ describe('ReportUtils', () => { }); describe('createDraftTransactionAndNavigateToParticipantSelector', () => { + it('should return early and not navigate when transaction is undefined', async () => { + jest.clearAllMocks(); + await Onyx.clear(); + await Onyx.set(ONYXKEYS.SESSION, {email: currentUserEmail, accountID: currentUserAccountID}); + await Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${1}`, {}); + + createDraftTransactionAndNavigateToParticipantSelector({ + transactionID: '1', + reportID: '1', + actionName: CONST.IOU.ACTION.CATEGORIZE, + reportActionID: '1', + introSelected: undefined, + draftTransactionIDs: [], + activePolicy: undefined, + userBillingGraceEndPeriods: undefined, + amountOwed: 0, + transaction: undefined, + }); + + expect(Navigation.navigate).not.toHaveBeenCalled(); + }); + describe('when action is CATEGORIZE', () => { beforeEach(async () => { jest.clearAllMocks(); From 32042d32a37a4573fa49d25c016326d6d3f8c107 Mon Sep 17 00:00:00 2001 From: Linh Date: Fri, 20 Mar 2026 06:42:54 +0700 Subject: [PATCH 6/8] chore: add iouTransaction to deps --- Mobile-Expensify | 2 +- src/pages/ReportDetailsPage.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Mobile-Expensify b/Mobile-Expensify index c628576cb95a2..65761aa22cb01 160000 --- a/Mobile-Expensify +++ b/Mobile-Expensify @@ -1 +1 @@ -Subproject commit c628576cb95a2f413f250aa8e22da4bf0e3d2c44 +Subproject commit 65761aa22cb01930272fd06a557d3dffcdc99c8a diff --git a/src/pages/ReportDetailsPage.tsx b/src/pages/ReportDetailsPage.tsx index f0f2a5117ba04..2e493ff6a9011 100644 --- a/src/pages/ReportDetailsPage.tsx +++ b/src/pages/ReportDetailsPage.tsx @@ -637,6 +637,7 @@ function ReportDetailsPage({policy, report, route, reportMetadata}: ReportDetail reportActionsForOriginalReportID, userBillingGraceEndPeriods, amountOwed, + iouTransaction, ]); const displayNamesWithTooltips = useMemo(() => { From e99a07cb3f31015869279a41760cbc277ccbb75d Mon Sep 17 00:00:00 2001 From: Linh Date: Fri, 20 Mar 2026 06:53:40 +0700 Subject: [PATCH 7/8] chore: revert submodule --- Mobile-Expensify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mobile-Expensify b/Mobile-Expensify index 65761aa22cb01..c628576cb95a2 160000 --- a/Mobile-Expensify +++ b/Mobile-Expensify @@ -1 +1 @@ -Subproject commit 65761aa22cb01930272fd06a557d3dffcdc99c8a +Subproject commit c628576cb95a2f413f250aa8e22da4bf0e3d2c44 From 268efdf135b65ba76097f21adbf6461b4fff96dd Mon Sep 17 00:00:00 2001 From: Linh Date: Fri, 20 Mar 2026 11:46:49 +0700 Subject: [PATCH 8/8] refactor: remove transactionID --- src/libs/ReportUtils.ts | 5 ++--- src/pages/ReportDetailsPage.tsx | 3 --- src/pages/inbox/report/PureReportActionItem.tsx | 4 ---- tests/actions/IOUTest.ts | 13 +++---------- tests/unit/ReportUtilsTest.ts | 10 ---------- 5 files changed, 5 insertions(+), 30 deletions(-) diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 22880506f1468..ae1a519147b26 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -11315,7 +11315,6 @@ function createDraftWorkspaceAndNavigateToConfirmationScreen(introSelected: Onyx } type CreateDraftTransactionParams = { - transactionID: string | undefined; reportID: string | undefined; actionName: IOUAction; reportActionID: string | undefined; @@ -11330,7 +11329,6 @@ type CreateDraftTransactionParams = { }; function createDraftTransactionAndNavigateToParticipantSelector({ - transactionID, reportID, actionName, reportActionID, @@ -11343,13 +11341,14 @@ function createDraftTransactionAndNavigateToParticipantSelector({ preferredPolicyID, transaction, }: CreateDraftTransactionParams): void { + const transactionID = transaction?.transactionID; if (!transactionID || !reportID) { return; } const reportActions = allReportActions?.[`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${reportID}`] ?? ([] as ReportAction[]); - if (!transaction || !reportActions) { + if (!reportActions) { return; } diff --git a/src/pages/ReportDetailsPage.tsx b/src/pages/ReportDetailsPage.tsx index 2e493ff6a9011..b5908b6b44d30 100644 --- a/src/pages/ReportDetailsPage.tsx +++ b/src/pages/ReportDetailsPage.tsx @@ -454,7 +454,6 @@ function ReportDetailsPage({policy, report, route, reportMetadata}: ReportDetail shouldShowRightIcon: true, action: () => { createDraftTransactionAndNavigateToParticipantSelector({ - transactionID: iouTransactionID, reportID: actionReportID, actionName: CONST.IOU.ACTION.SUBMIT, reportActionID: actionableWhisperReportActionID, @@ -478,7 +477,6 @@ function ReportDetailsPage({policy, report, route, reportMetadata}: ReportDetail shouldShowRightIcon: true, action: () => { createDraftTransactionAndNavigateToParticipantSelector({ - transactionID: iouTransactionID, reportID: actionReportID, actionName: CONST.IOU.ACTION.CATEGORIZE, reportActionID: actionableWhisperReportActionID, @@ -499,7 +497,6 @@ function ReportDetailsPage({policy, report, route, reportMetadata}: ReportDetail shouldShowRightIcon: true, action: () => { createDraftTransactionAndNavigateToParticipantSelector({ - transactionID: iouTransactionID, reportID: actionReportID, actionName: CONST.IOU.ACTION.SHARE, reportActionID: actionableWhisperReportActionID, diff --git a/src/pages/inbox/report/PureReportActionItem.tsx b/src/pages/inbox/report/PureReportActionItem.tsx index 5d4f9f5c6c8a1..9618bad1ed06e 100644 --- a/src/pages/inbox/report/PureReportActionItem.tsx +++ b/src/pages/inbox/report/PureReportActionItem.tsx @@ -935,14 +935,12 @@ function PureReportActionItem({ const reportActionReportID = originalReportID ?? reportID; if (isActionableTrackExpense(action)) { - const transactionID = getOriginalMessage(action)?.transactionID; const options = [ { text: 'actionableMentionTrackExpense.submit', key: `${action.reportActionID}-actionableMentionTrackExpense-submit`, onPress: () => { createDraftTransactionAndNavigateToParticipantSelector({ - transactionID, reportID: reportActionReportID, actionName: CONST.IOU.ACTION.SUBMIT, reportActionID: action.reportActionID, @@ -966,7 +964,6 @@ function PureReportActionItem({ key: `${action.reportActionID}-actionableMentionTrackExpense-categorize`, onPress: () => { createDraftTransactionAndNavigateToParticipantSelector({ - transactionID, reportID: reportActionReportID, actionName: CONST.IOU.ACTION.CATEGORIZE, reportActionID: action.reportActionID, @@ -984,7 +981,6 @@ function PureReportActionItem({ key: `${action.reportActionID}-actionableMentionTrackExpense-share`, onPress: () => { createDraftTransactionAndNavigateToParticipantSelector({ - transactionID, reportID: reportActionReportID, actionName: CONST.IOU.ACTION.SHARE, reportActionID: action.reportActionID, diff --git a/tests/actions/IOUTest.ts b/tests/actions/IOUTest.ts index ea8b4734376f5..5054f2febac2d 100644 --- a/tests/actions/IOUTest.ts +++ b/tests/actions/IOUTest.ts @@ -628,7 +628,6 @@ describe('actions/IOU', () => { // When the transaction is saved to draft by selecting a category in the selfDM report const reportActionableTrackExpense = Object.values(selfDMReportActions ?? {}).find((reportAction) => isActionableTrackExpense(reportAction)); createDraftTransactionAndNavigateToParticipantSelector({ - transactionID: transaction?.transactionID, reportID: selfDMReport.reportID, actionName: CONST.IOU.ACTION.CATEGORIZE, reportActionID: reportActionableTrackExpense?.reportActionID, @@ -1202,7 +1201,6 @@ describe('actions/IOU', () => { // When a draft is created for categorization createDraftTransactionAndNavigateToParticipantSelector({ - transactionID: createdTransaction?.transactionID, reportID: selfDMReport.reportID, actionName: CONST.IOU.ACTION.CATEGORIZE, reportActionID: actionableWhisper?.reportActionID, @@ -1845,7 +1843,6 @@ describe('actions/IOU', () => { // When createDraftTransactionAndNavigateToParticipantSelector is called with draftTransactionIDs createDraftTransactionAndNavigateToParticipantSelector({ - transactionID: transactionToCategorize.transactionID, reportID: selfDMReport.reportID, actionName: CONST.IOU.ACTION.CATEGORIZE, reportActionID, @@ -1894,7 +1891,6 @@ describe('actions/IOU', () => { // When createDraftTransactionAndNavigateToParticipantSelector is called with empty allTransactionDrafts createDraftTransactionAndNavigateToParticipantSelector({ - transactionID: originalTransaction.transactionID, reportID: selfDMReport.reportID, actionName: CONST.IOU.ACTION.CATEGORIZE, reportActionID, @@ -1925,15 +1921,13 @@ describe('actions/IOU', () => { expect(draftTransaction?.linkedTrackedExpenseReportID).toBe(selfDMReport.reportID); }); - it('should not create draft transaction when transactionID is undefined', async () => { + it('should not create draft transaction when transaction is undefined', async () => { // Given a selfDM report const selfDMReport = createRandomReport(1, CONST.REPORT.CHAT_TYPE.SELF_DM); - const transaction: Transaction = {...createRandomTransaction(1), transactionID: 'test-transaction'}; await Onyx.set(`${ONYXKEYS.COLLECTION.REPORT}${selfDMReport.reportID}`, selfDMReport); - // When createDraftTransactionAndNavigateToParticipantSelector is called with undefined transactionID + // When createDraftTransactionAndNavigateToParticipantSelector is called with undefined transaction createDraftTransactionAndNavigateToParticipantSelector({ - transactionID: undefined, reportID: selfDMReport.reportID, actionName: CONST.IOU.ACTION.CATEGORIZE, reportActionID: 'some-report-action-id', @@ -1942,7 +1936,7 @@ describe('actions/IOU', () => { activePolicy: undefined, userBillingGraceEndPeriods: undefined, amountOwed: 0, - transaction, + transaction: undefined, }); await waitForBatchedUpdates(); @@ -1966,7 +1960,6 @@ describe('actions/IOU', () => { // When createDraftTransactionAndNavigateToParticipantSelector is called with undefined reportID createDraftTransactionAndNavigateToParticipantSelector({ - transactionID: transaction.transactionID, reportID: undefined, actionName: CONST.IOU.ACTION.CATEGORIZE, reportActionID: 'some-report-action-id', diff --git a/tests/unit/ReportUtilsTest.ts b/tests/unit/ReportUtilsTest.ts index 7e06a477d448f..09268e664d855 100644 --- a/tests/unit/ReportUtilsTest.ts +++ b/tests/unit/ReportUtilsTest.ts @@ -13201,7 +13201,6 @@ describe('ReportUtils', () => { await Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${1}`, {}); createDraftTransactionAndNavigateToParticipantSelector({ - transactionID: '1', reportID: '1', actionName: CONST.IOU.ACTION.CATEGORIZE, reportActionID: '1', @@ -13239,7 +13238,6 @@ describe('ReportUtils', () => { // When we call createDraftTransactionAndNavigateToParticipantSelector with the restricted policy createDraftTransactionAndNavigateToParticipantSelector({ - transactionID: transaction.transactionID, reportID: '1', actionName: CONST.IOU.ACTION.CATEGORIZE, reportActionID: '1', @@ -13275,7 +13273,6 @@ describe('ReportUtils', () => { // When we call createDraftTransactionAndNavigateToParticipantSelector createDraftTransactionAndNavigateToParticipantSelector({ - transactionID: transaction.transactionID, reportID: '1', actionName: CONST.IOU.ACTION.CATEGORIZE, reportActionID: '1', @@ -13314,7 +13311,6 @@ describe('ReportUtils', () => { // When we call createDraftTransactionAndNavigateToParticipantSelector createDraftTransactionAndNavigateToParticipantSelector({ - transactionID: transaction.transactionID, reportID: '1', actionName: CONST.IOU.ACTION.CATEGORIZE, reportActionID: '1', @@ -13355,7 +13351,6 @@ describe('ReportUtils', () => { // When we call createDraftTransactionAndNavigateToParticipantSelector with undefined activePolicy createDraftTransactionAndNavigateToParticipantSelector({ - transactionID: transaction.transactionID, reportID: '2', actionName: CONST.IOU.ACTION.CATEGORIZE, reportActionID: '2', @@ -13383,7 +13378,6 @@ describe('ReportUtils', () => { // When we call createDraftTransactionAndNavigateToParticipantSelector with undefined activePolicy createDraftTransactionAndNavigateToParticipantSelector({ - transactionID: transaction.transactionID, reportID: '1', actionName: CONST.IOU.ACTION.CATEGORIZE, reportActionID: '1', @@ -13432,7 +13426,6 @@ describe('ReportUtils', () => { // When we call createDraftTransactionAndNavigateToParticipantSelector with undefined activePolicy createDraftTransactionAndNavigateToParticipantSelector({ - transactionID: transaction.transactionID, reportID: '1', actionName: CONST.IOU.ACTION.CATEGORIZE, reportActionID: '1', @@ -13477,7 +13470,6 @@ describe('ReportUtils', () => { // When we call createDraftTransactionAndNavigateToParticipantSelector createDraftTransactionAndNavigateToParticipantSelector({ - transactionID: transaction.transactionID, reportID: '1', actionName: CONST.IOU.ACTION.CATEGORIZE, reportActionID: '1', @@ -13520,7 +13512,6 @@ describe('ReportUtils', () => { // When we call with amountOwed = 0 createDraftTransactionAndNavigateToParticipantSelector({ - transactionID: transaction.transactionID, reportID: '1', actionName: CONST.IOU.ACTION.CATEGORIZE, reportActionID: '1', @@ -13555,7 +13546,6 @@ describe('ReportUtils', () => { // When we call with amountOwed = 50 createDraftTransactionAndNavigateToParticipantSelector({ - transactionID: transaction.transactionID, reportID: '1', actionName: CONST.IOU.ACTION.CATEGORIZE, reportActionID: '1',