Skip to content

Commit bd8a9dc

Browse files
authored
Merge pull request Expensify#79945 from bernhardoj/fix/79324-replace-receipt-removes-the-other-receipts
Fix other receipts disappear when replacing one of the receipt
2 parents 0564536 + e2e7d04 commit bd8a9dc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/iou/request/step/IOURequestStepScan/index.native.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ function IOURequestStepScan({
398398
return;
399399
}
400400

401-
if (!isMultiScanEnabled) {
401+
if (!isMultiScanEnabled && isStartingScan) {
402402
removeDraftTransactions(true);
403403
}
404404

src/pages/iou/request/step/IOURequestStepScan/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ function IOURequestStepScan({
412412
return;
413413
}
414414

415-
if (!isMultiScanEnabled) {
415+
if (!isMultiScanEnabled && isStartingScan) {
416416
removeDraftTransactions(true);
417417
}
418418

0 commit comments

Comments
 (0)