Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
79acb6e
extract reports out of changeTransactionsReport, yet to fix useUndele…
Guccio163 Jun 16, 2026
3925ddc
Merge branch 'main' of github.com:software-mansion-labs/expensify-app…
Guccio163 Jun 22, 2026
e5a7cc1
fix tests
Guccio163 Jun 22, 2026
e22feef
include codex suggestion
Guccio163 Jun 22, 2026
cfb2c23
remove selector from useChangeTransactionsReportReports
Guccio163 Jun 22, 2026
770e146
Merge branch 'main' of github.com:software-mansion-labs/expensify-app…
Guccio163 Jun 24, 2026
7bced5f
Merge branch 'main' of github.com:software-mansion-labs/expensify-app…
Guccio163 Jun 25, 2026
c70ce5a
fix tests
Guccio163 Jun 25, 2026
295a314
patch changeTransactionsReport
Guccio163 Jun 25, 2026
9190653
Merge branch 'main' into Guccio163/onyx-connect/transaction/report
Guccio163 Jun 25, 2026
39d21eb
Merge branch 'main' of github.com:software-mansion-labs/expensify-app…
Guccio163 Jul 6, 2026
d391988
format new hook with fmt
Guccio163 Jul 6, 2026
c61712e
use reports argument in new allReport usages
Guccio163 Jul 6, 2026
b2e64af
Narrow report subscription with a useOnyx selector and drop redundant…
Guccio163 Jul 15, 2026
34b2e00
Merge branch 'main' of github.com:software-mansion-labs/expensify-app…
Guccio163 Jul 15, 2026
a9772ef
fix test
Guccio163 Jul 15, 2026
566997a
Merge branch 'main' of github.com:software-mansion-labs/expensify-app…
Guccio163 Jul 20, 2026
e90c811
Merge branch 'main' of github.com:software-mansion-labs/expensify-app…
Guccio163 Aug 4, 2026
3ef45f8
fix test ts
Guccio163 Aug 4, 2026
6c93ea3
fix tests/actions/ReportTest.ts fail
Guccio163 Aug 4, 2026
d03de9a
Fix tests broken by react-native-onyx API update
Guccio163 Aug 4, 2026
34b48d2
optimistic reports logic fix
Guccio163 Aug 4, 2026
e552919
Include transactionCount/unheldNonReimbursableTotal in reportsForCall…
Guccio163 Aug 4, 2026
efad694
Document what useChangeTransactionsReportReports includes in its result
Guccio163 Aug 4, 2026
f14710a
Add unit tests for useChangeTransactionsReportReports
Guccio163 Aug 4, 2026
8a87669
Fix stale policyID key in old transaction thread rollback
Guccio163 Aug 6, 2026
0d54bc5
Merge branch 'main' of github.com:software-mansion-labs/expensify-app…
Guccio163 Aug 6, 2026
fdc510c
Fix TransactionTest.ts after merging main
Guccio163 Aug 6, 2026
18eb532
Merge branch 'main' of github.com:software-mansion-labs/expensify-app…
Guccio163 Aug 6, 2026
6f7e3e0
Merge branch 'main' of github.com:software-mansion-labs/expensify-app…
Guccio163 Aug 6, 2026
cd3b7a0
Merge branch 'main' of github.com:software-mansion-labs/expensify-app…
Guccio163 Aug 7, 2026
6693b04
Remove orphaned jsonQuery/hash tests from TransactionTest.ts
Guccio163 Aug 7, 2026
2a4d4ad
Simplify useChangeTransactionsReportReports and cover UNREPORTED_REPO…
Guccio163 Aug 7, 2026
78b5d91
Merge branch 'main' of github.com:software-mansion-labs/expensify-app…
Guccio163 Aug 10, 2026
cbd91c3
Seed transactionCount/unheldNonReimbursableTotal on optimistic report…
Guccio163 Aug 10, 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
5 changes: 3 additions & 2 deletions src/components/AddExistingExpenseFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import useChangeTransactionsReportReports from '@hooks/useChangeTransactionsReportReports';
import {useCurrencyListActions} from '@hooks/useCurrencyList';
import useDelegateAccountID from '@hooks/useDelegateAccountID';
import useLocalize from '@hooks/useLocalize';
Expand Down Expand Up @@ -56,7 +57,6 @@ function AddExistingExpenseFooter({selectedIds, report, reportToConfirm, policy,
const delegateAccountID = useDelegateAccountID();
const personalPolicy = usePersonalPolicy();
const [transactionViolations] = useOnyx(ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS);
const [allReports] = useOnyx(ONYXKEYS.COLLECTION.REPORT);
const [policyRecentlyUsedCurrencies] = useOnyx(ONYXKEYS.RECENTLY_USED_CURRENCIES);
const [quickAction] = useOnyx(ONYXKEYS.NVP_QUICK_ACTION_GLOBAL_CREATE);
const [betas] = useOnyx(ONYXKEYS.BETAS);
Expand All @@ -68,6 +68,7 @@ function AddExistingExpenseFooter({selectedIds, report, reportToConfirm, policy,
const [isTrackIntentUser] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {selector: isTrackIntentUserSelector});

const [transactions] = useTransactionsByID([...selectedIds]);
const reports = useChangeTransactionsReportReports(transactions, reportToConfirm?.reportID);

const handleConfirm = () => {
if (selectedIds.size === 0) {
Expand Down Expand Up @@ -107,7 +108,7 @@ function AddExistingExpenseFooter({selectedIds, report, reportToConfirm, policy,
policyTagList,
transactions,
allTransactionViolation: transactionViolations,
allReports,
reports,
isTrackIntentUser,
personalPolicyOutputCurrency: personalPolicy?.outputCurrency,
selfDMReportActions,
Expand Down
65 changes: 65 additions & 0 deletions src/hooks/useChangeTransactionsReportReports.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import {getIOUActionForReportID} from '@libs/ReportActionsUtils';
import {findSelfDMReportID} from '@libs/ReportUtils';
import {isDeletedTransaction} from '@libs/TransactionUtils';

import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import type {Report, Transaction} from '@src/types/onyx';

import type {OnyxCollection} from 'react-native-onyx';

import useOnyx from './useOnyx';

/**
* Resolve the REPORT subset that `changeTransactionsReport` looks up — keyed like the full collection so the action
* can do `reports?.[\`${KEY}${id}\`]`. Includes:
* - the unreported-report sentinel, looked up for transactions moving out of personal space
* - the self-DM report, if one exists
* - the destination report (`newReportID`)
* - each transaction's current report
* - for non-deleted transactions, the old IOU action's transaction-thread report (`childReportID`)
*/
function useChangeTransactionsReportReports(transactions: Transaction[], newReportID: string | undefined): OnyxCollection<Report> {
const ids = new Set<string>();
ids.add(CONST.REPORT.UNREPORTED_REPORT_ID);
const selfDMReportID = findSelfDMReportID();
Comment thread
Guccio163 marked this conversation as resolved.
Resolved
if (selfDMReportID) {
ids.add(selfDMReportID);
}
if (newReportID) {
ids.add(newReportID);
}
for (const transaction of transactions) {
if (transaction.reportID) {
ids.add(transaction.reportID);
}
if (isDeletedTransaction(transaction)) {
continue;
}
const isUnreportedExpense = !transaction.reportID || transaction.reportID === CONST.REPORT.UNREPORTED_REPORT_ID;
const source = isUnreportedExpense ? selfDMReportID : transaction.reportID;
if (!source) {
continue;
}
const iouAction = getIOUActionForReportID(source, transaction.transactionID);
if (iouAction?.childReportID) {
ids.add(iouAction.childReportID);
}
}
const [reports] = useOnyx(ONYXKEYS.COLLECTION.REPORT, {
selector: (allReports) => {
Comment thread
Guccio163 marked this conversation as resolved.
Resolved
const result: Record<string, Report | undefined> = {};
for (const id of ids) {
const key = `${ONYXKEYS.COLLECTION.REPORT}${id}` as const;
const report = allReports?.[key];
if (report) {
result[key] = report;
}
}
return result as OnyxCollection<Report>;
},
});
return reports;
}

export default useChangeTransactionsReportReports;
4 changes: 2 additions & 2 deletions src/hooks/useUndeleteTransactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function useUndeleteTransactions() {
const [policy] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY}${personalPolicyID}`);
const [policyTagList] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY_TAGS}${policy?.id}`);
const [transactionViolations] = useOnyx(ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS);
const [allReports] = useOnyx(ONYXKEYS.COLLECTION.REPORT);
const [reports] = useOnyx(ONYXKEYS.COLLECTION.REPORT);
const [selfDMReportID] = useOnyx(ONYXKEYS.SELF_DM_REPORT_ID);
const [selfDMReportActions] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${getNonEmptyStringOnyxID(selfDMReportID)}`);
const [isTrackIntentUser] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {selector: isTrackIntentUserSelector});
Expand All @@ -38,7 +38,7 @@ function useUndeleteTransactions() {
policyTagList,
transactions,
allTransactionViolation: transactionViolations,
allReports,
reports,
selfDMReportActions,
isTrackIntentUser,
personalPolicyOutputCurrency: policy?.outputCurrency,
Expand Down
2 changes: 1 addition & 1 deletion src/libs/actions/Report/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8273,7 +8273,7 @@ function mergeReports({
policyTagList: policyTagList ?? {},
transactions: transactionsToMove,
allTransactionViolation,
allReports: reports,
reports,
skippedReportIDs: sourceReportIDs,
isTrackIntentUser,
personalPolicyOutputCurrency,
Expand Down
26 changes: 7 additions & 19 deletions src/libs/actions/Transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,6 @@ import Onyx from 'react-native-onyx';

import {getAllTransactions} from './IOU';

let allReports: OnyxCollection<Report> = {};
Onyx.connect({
key: ONYXKEYS.COLLECTION.REPORT,
callback: (value) => {
if (!value) {
return;
}
allReports = value;
},
});

type SaveWaypointProps = {
transactionID: string;
index: string;
Expand Down Expand Up @@ -827,7 +816,7 @@ type ChangeTransactionsReportProps = {
policyTagList: OnyxEntry<PolicyTagLists>;
transactions: Transaction[];
allTransactionViolation?: OnyxCollection<TransactionViolation[]>;
allReports: OnyxCollection<Report>;
reports: OnyxCollection<Report>;
/** Report IDs that should be skipped when generating Onyx updates (e.g. because they are being deleted) */
skippedReportIDs?: string[];
isTrackIntentUser: boolean | undefined;
Expand All @@ -847,14 +836,13 @@ function getChangeTransactionsReportOnyxData({
policyTagList,
transactions,
allTransactionViolation = {},
allReports: allReportsParam,
reports,
skippedReportIDs,
isTrackIntentUser,
personalPolicyOutputCurrency,
selfDMReportActions,
getCurrencyDecimals,
}: ChangeTransactionsReportProps) {
const reports = allReportsParam ?? allReports;
const reportID = newReport?.reportID ?? CONST.REPORT.UNREPORTED_REPORT_ID;

const transactionIDToReportActionAndThreadData: Record<string, TransactionThreadInfo> = {};
Expand Down Expand Up @@ -1551,7 +1539,7 @@ function getChangeTransactionsReportOnyxData({
value: {
parentReportID: isUnreportedExpense ? selfDMReportID : oldReportID,
parentReportActionID: oldIOUAction.reportActionID,
policyID: reports?.[`${ONYXKEYS.COLLECTION.REPORT}${oldIOUAction.reportActionID}`]?.policyID,
policyID: reports?.[`${ONYXKEYS.COLLECTION.REPORT}${oldIOUAction.childReportID}`]?.policyID,
},
});
}
Expand Down Expand Up @@ -1785,8 +1773,8 @@ function getChangeTransactionsReportOnyxData({
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${reportIDToUpdate}`,
value: {
stateNum: allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${reportIDToUpdate}`]?.stateNum,
statusNum: allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${reportIDToUpdate}`]?.statusNum,
stateNum: reports?.[`${ONYXKEYS.COLLECTION.REPORT}${reportIDToUpdate}`]?.stateNum,
statusNum: reports?.[`${ONYXKEYS.COLLECTION.REPORT}${reportIDToUpdate}`]?.statusNum,
},
});
}
Expand All @@ -1804,7 +1792,7 @@ function getChangeTransactionsReportOnyxData({
failureData.push({
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${reportIDToUpdate}`,
value: {reimbursableTotal: allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${reportIDToUpdate}`]?.reimbursableTotal},
value: {reimbursableTotal: reports?.[`${ONYXKEYS.COLLECTION.REPORT}${reportIDToUpdate}`]?.reimbursableTotal},
});
}

Expand All @@ -1822,7 +1810,7 @@ function getChangeTransactionsReportOnyxData({
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${reportIDToUpdate}`,
value: {
unheldReimbursableTotal: allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${reportIDToUpdate}`]?.unheldReimbursableTotal,
unheldReimbursableTotal: reports?.[`${ONYXKEYS.COLLECTION.REPORT}${reportIDToUpdate}`]?.unheldReimbursableTotal,
},
});
}
Expand Down
9 changes: 7 additions & 2 deletions src/pages/DynamicNewReportWorkspaceSelectionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import UserListItem from '@components/SelectionList/ListItem/UserListItem';
import type {ListItem} from '@components/SelectionList/types';
import Text from '@components/Text';

import useChangeTransactionsReportReports from '@hooks/useChangeTransactionsReportReports';
import useCreateEmptyReportConfirmation from '@hooks/useCreateEmptyReportConfirmation';
import useCreateNewReport from '@hooks/useCreateNewReport';
import {useCurrencyListActions} from '@hooks/useCurrencyList';
Expand Down Expand Up @@ -84,7 +85,6 @@ function DynamicNewReportWorkspaceSelectionPage({route}: NewReportWorkspaceSelec
const [userBillingGracePeriods] = useOnyx(ONYXKEYS.COLLECTION.SHARED_NVP_PRIVATE_USER_BILLING_GRACE_PERIOD_END);
const [amountOwed] = useOnyx(ONYXKEYS.NVP_PRIVATE_AMOUNT_OWED);
const [policies, fetchStatus] = useOnyx(ONYXKEYS.COLLECTION.POLICY);
const [allReports] = useOnyx(ONYXKEYS.COLLECTION.REPORT);
const [allTransactions] = useOnyx(ONYXKEYS.COLLECTION.TRANSACTION);
const [transactionViolations] = useOnyx(ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS);
const [selfDMReportID] = useOnyx(ONYXKEYS.SELF_DM_REPORT_ID);
Expand All @@ -96,6 +96,7 @@ function DynamicNewReportWorkspaceSelectionPage({route}: NewReportWorkspaceSelec
const selectedTransactionsKeys = Object.keys(selectedTransactions);
const transactionIDs = selectedTransactionsKeys.length ? selectedTransactionsKeys : selectedTransactionIDs;
const [transactions] = useTransactionsByID(transactionIDs);
const reports = useChangeTransactionsReportReports(transactions, undefined);

const isAppLoadPending = useIsAppLoadPending();
const shouldShowLoadingIndicator = isAppLoadPending && !isOffline;
Expand Down Expand Up @@ -129,6 +130,10 @@ function DynamicNewReportWorkspaceSelectionPage({route}: NewReportWorkspaceSelec

if (isMovingExpenses && (!!selectedTransactionsKeys.length || !!selectedTransactionIDs.length)) {
const policyTagList = policyID ? allPolicyTags?.[`${ONYXKEYS.COLLECTION.POLICY_TAGS}${policyID}`] : {};
const reportsForCall = {
...reports,
[`${ONYXKEYS.COLLECTION.REPORT}${optimisticReport.reportID}`]: {...optimisticReport, transactionCount: 0, unheldNonReimbursableTotal: 0},
};
setNavigationActionToMicrotaskQueue(() => {
changeTransactionsReport({
transactionIDs,
Expand All @@ -141,7 +146,7 @@ function DynamicNewReportWorkspaceSelectionPage({route}: NewReportWorkspaceSelec
policyTagList,
transactions,
allTransactionViolation: transactionViolations,
allReports,
reports: reportsForCall,
isTrackIntentUser,
personalPolicyOutputCurrency: personalPolicy?.outputCurrency,
selfDMReportActions,
Expand Down
18 changes: 15 additions & 3 deletions src/pages/Search/SearchTransactionsChangeReport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {usePersonalDetails, useSession} from '@components/OnyxListItemProvider';
import {useSearchResultsContext, useSearchSelectionActions, useSearchSelectionContext} from '@components/Search/SearchContext';
import type {ListItem} from '@components/SelectionList/types';

import useChangeTransactionsReportReports from '@hooks/useChangeTransactionsReportReports';
import useConditionalCreateEmptyReportConfirmation from '@hooks/useConditionalCreateEmptyReportConfirmation';
import {useCurrencyListActions} from '@hooks/useCurrencyList';
import useHasPerDiemTransactions from '@hooks/useHasPerDiemTransactions';
Expand Down Expand Up @@ -61,6 +62,7 @@ function SearchTransactionsChangeReport() {
const managedCardTransactionID = transactions.find((transaction) => isUnreportedManagedCardTransaction(transaction))?.transactionID;
const hasUnreportedManagedCardTransactions = !!managedCardTransactionID;
const [transactionViolations] = useOnyx(ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS);
const reports = useChangeTransactionsReportReports(transactions, undefined);
const [isTrackIntentUser] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {selector: isTrackIntentUserSelector});
const {isBetaEnabled} = usePermissions();
const isASAPSubmitBetaEnabled = isBetaEnabled(CONST.BETAS.ASAP_SUBMIT);
Expand Down Expand Up @@ -163,6 +165,10 @@ function SearchTransactionsChangeReport() {
{managedCardTransactionID},
);
const policyTagList = policyForMovingExpenses?.id ? allPolicyTags?.[`${ONYXKEYS.COLLECTION.POLICY_TAGS}${policyForMovingExpenses.id}`] : {};
const reportsForCall = {
...reports,
[`${ONYXKEYS.COLLECTION.REPORT}${optimisticReport.reportID}`]: {...optimisticReport, transactionCount: 0, unheldNonReimbursableTotal: 0},
};
setNavigationActionToMicrotaskQueue(() => {
changeTransactionsReport({
transactionIDs: selectedTransactionsKeys,
Expand All @@ -175,7 +181,7 @@ function SearchTransactionsChangeReport() {
policyTagList,
transactions,
allTransactionViolation: transactionViolations,
allReports,
reports: reportsForCall,
isTrackIntentUser,
personalPolicyOutputCurrency: personalPolicy?.outputCurrency,
selfDMReportActions,
Expand Down Expand Up @@ -244,6 +250,12 @@ function SearchTransactionsChangeReport() {

const destinationReport = allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${item.value}`];
const policyTagList = item?.policyID ? allPolicyTags?.[`${ONYXKEYS.COLLECTION.POLICY_TAGS}${item.policyID}`] : {};
const reportsForCall = destinationReport?.reportID
? {
[`${ONYXKEYS.COLLECTION.REPORT}${destinationReport.reportID}`]: destinationReport,
...reports,
}
: reports;
changeTransactionsReport({
transactionIDs: selectedTransactionsKeys,
isASAPSubmitBetaEnabled,
Expand All @@ -255,7 +267,7 @@ function SearchTransactionsChangeReport() {
policyTagList,
transactions,
allTransactionViolation: transactionViolations,
allReports,
reports: reportsForCall,
isTrackIntentUser,
personalPolicyOutputCurrency: personalPolicy?.outputCurrency,
selfDMReportActions,
Expand All @@ -278,7 +290,7 @@ function SearchTransactionsChangeReport() {
policyTagList,
transactions,
allTransactionViolation: transactionViolations,
allReports,
reports,
isTrackIntentUser,
personalPolicyOutputCurrency: personalPolicy?.outputCurrency,
selfDMReportActions,
Expand Down
9 changes: 6 additions & 3 deletions src/pages/iou/request/step/DynamicIOURequestEditReport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {usePersonalDetails} from '@components/OnyxListItemProvider';
import {useSearchSelectionActions, useSearchSelectionContext} from '@components/Search/SearchContext';
import type {ListItem} from '@components/SelectionList/types';

import useChangeTransactionsReportReports from '@hooks/useChangeTransactionsReportReports';
import useConditionalCreateEmptyReportConfirmation from '@hooks/useConditionalCreateEmptyReportConfirmation';
import {useCurrencyListActions} from '@hooks/useCurrencyList';
import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails';
Expand Down Expand Up @@ -89,6 +90,7 @@ function DynamicIOURequestEditReport({route}: DynamicIOURequestEditReportProps)
const hasViolations = hasViolationsReportUtils(undefined, transactionViolations, currentUserPersonalDetails.accountID ?? CONST.DEFAULT_NUMBER_ID, currentUserPersonalDetails.email ?? '');
const policyForMovingExpenses = policyForMovingExpensesID ? allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${policyForMovingExpensesID}`] : undefined;
const [betas] = useOnyx(ONYXKEYS.BETAS);
const reports = useChangeTransactionsReportReports(transactions, selectedReport?.reportID);
const [selfDMReportID] = useOnyx(ONYXKEYS.SELF_DM_REPORT_ID);
const [selfDMReportActions] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${getNonEmptyStringOnyxID(selfDMReportID)}`);
const [isTrackIntentUser] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {selector: isTrackIntentUserSelector});
Expand All @@ -101,6 +103,7 @@ function DynamicIOURequestEditReport({route}: DynamicIOURequestEditReportProps)

const newReport = report ?? allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${item.value}`];
const policyTagList = item?.policyID ? allPolicyTags?.[`${ONYXKEYS.COLLECTION.POLICY_TAGS}${item.policyID}`] : {};
const reportsForCall = newReport?.reportID ? {[`${ONYXKEYS.COLLECTION.REPORT}${newReport.reportID}`]: newReport, ...reports} : reports;
Comment thread
Guccio163 marked this conversation as resolved.
Resolved

setNavigationActionToMicrotaskQueue(() => {
changeTransactionsReport({
Expand All @@ -114,7 +117,7 @@ function DynamicIOURequestEditReport({route}: DynamicIOURequestEditReportProps)
policyTagList,
transactions,
allTransactionViolation: transactionViolations,
allReports,
reports: reportsForCall,
isTrackIntentUser,
personalPolicyOutputCurrency: personalPolicy?.outputCurrency,
selfDMReportActions,
Expand All @@ -141,7 +144,7 @@ function DynamicIOURequestEditReport({route}: DynamicIOURequestEditReportProps)
policyTagList,
transactions,
allTransactionViolation: transactionViolations,
allReports,
reports,
isTrackIntentUser,
personalPolicyOutputCurrency: personalPolicy?.outputCurrency,
selfDMReportActions,
Expand Down Expand Up @@ -177,7 +180,7 @@ function DynamicIOURequestEditReport({route}: DynamicIOURequestEditReportProps)
keyForList: optimisticReport.reportID,
policyID: policyForMovingExpenses?.id,
},
optimisticReport,
{...optimisticReport, transactionCount: 0, unheldNonReimbursableTotal: 0},
);
};

Expand Down
Loading
Loading