Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nkdengineer committed Mar 23, 2024
1 parent a6fd598 commit 51c38fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libs/ReportActionsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ function getContinuousReportActionChain(sortedReportActions: ReportAction[], id?
}

if (index === -1) {
// if no non-pending action is found, that means all actions on the report are optimistic
// in this case, we'll assume the whole chain of reportActions is continuous and return it in its entirety
return id ? [] : sortedReportActions;
}

Expand Down

0 comments on commit 51c38fd

Please sign in to comment.