Skip to content

Commit

Permalink
fix: update comment
Browse files Browse the repository at this point in the history
Co-authored-by: Youssef Lourayad <youssef@expensify.com>
  • Loading branch information
dukenv0307 and youssef-lr authored Mar 7, 2024
1 parent 2fa9944 commit 0a4ced1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4139,6 +4139,7 @@ function chatIncludesChronos(report: OnyxEntry<Report> | EmptyObject): boolean {
*/
function canFlagReportAction(reportAction: OnyxEntry<ReportAction>, reportID: string | undefined): boolean {
let report = getReport(reportID);

// If the childReportID exists in reportAction and is equal to the reportID,
// the report action being evaluated is the parent report action in a thread, and we should get the parent report to evaluate instead.
if (reportAction?.childReportID?.toString() === reportID?.toString()) {
Expand Down

0 comments on commit 0a4ced1

Please sign in to comment.