Skip to content

Commit 03023c1

Browse files
authored
Merge pull request Expensify#82042 from annaweber830/fix-80576
Fix: Web-Scan-Scan expense from Reports, the existing report disappears in filter for a while
2 parents a7b0b95 + 75b4dde commit 03023c1

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

src/libs/ReportPrimaryActionUtils.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,7 @@ function isSubmitAction(
130130
return false;
131131
}
132132

133-
if (reportTransactions.length > 0 && reportTransactions.every((transaction) => isPending(transaction))) {
134-
return false;
135-
}
136-
137-
const isAnyReceiptBeingScanned = reportTransactions?.some((transaction) => isScanning(transaction));
138-
139-
if (isAnyReceiptBeingScanned) {
133+
if (reportTransactions.length > 0 && reportTransactions.every((transaction) => isPending(transaction) || isScanning(transaction))) {
140134
return false;
141135
}
142136

src/libs/actions/OnyxDerived/configs/todos.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ const createTodosReportsAndTransactions = ({
5858
const reportActions = Object.values(allReportActions?.[`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${report.reportID}`] ?? []);
5959
const reportTransactions = transactionsByReportID[report.reportID] ?? [];
6060
const reportMetadata = allReportMetadata?.[`${ONYXKEYS.COLLECTION.REPORT_METADATA}${report.reportID}`];
61-
6261
if (isSubmitAction(report, reportTransactions, reportMetadata, policy, reportNameValuePair, undefined, login, currentUserAccountID)) {
6362
reportsToSubmit.push(report);
6463
}

0 commit comments

Comments
 (0)