Skip to content

Commit

Permalink
fix: keep the CREATED action which is created first
Browse files Browse the repository at this point in the history
Co-authored-by: c3024 <[email protected]>
  • Loading branch information
dominictb and c3024 authored Jul 15, 2024
1 parent b685ff0 commit 07816cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportActionsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ function getCombinedReportActions(
let filteredTransactionThreadReportActions = transactionThreadReportActions;
let filteredParentReportActions = reportActions;

if (transactionThreadCreatedAction && parentReportCreatedAction && transactionThreadCreatedAction.created < parentReportCreatedAction.created) {
if (transactionThreadCreatedAction && parentReportCreatedAction && transactionThreadCreatedAction.created > parentReportCreatedAction.created) {
filteredTransactionThreadReportActions = transactionThreadReportActions?.filter((action) => action.actionName !== CONST.REPORT.ACTIONS.TYPE.CREATED);
} else {
filteredParentReportActions = reportActions?.filter((action) => action.actionName !== CONST.REPORT.ACTIONS.TYPE.CREATED);
Expand Down

0 comments on commit 07816cf

Please sign in to comment.