Skip to content
Merged
Changes from all commits
Commits
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
12 changes: 7 additions & 5 deletions src/libs/actions/Transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -936,9 +936,11 @@ function changeTransactionsReport({
value: {
reportID,
...(shouldClearAmount && {pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE}),
comment: {
hold: null,
},
...(isUnreported && {
comment: {
hold: null,
},
}),
...(shouldClearAmount && {convertedAmount: null}),
...(oldIOUAction ? {linkedTrackedExpenseReportAction: newIOUAction} : {}),
},
Expand Down Expand Up @@ -1295,8 +1297,8 @@ function changeTransactionsReport({
transactionIDToReportActionAndThreadData[transaction.transactionID] = baseTransactionData;
}

// Build unhold report action
if (isOnHold(transaction)) {
// Build unhold report action only when moving to unreported (self DM) report
if (isUnreported && isOnHold(transaction)) {
const unHoldAction = buildOptimisticUnHoldReportAction();
optimisticData.push({
onyxMethod: Onyx.METHOD.MERGE,
Expand Down