Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperhuangg committed Jan 22, 2024
1 parent de3ad34 commit 6633280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ function getPolicyName(report: OnyxEntry<Report> | undefined | EmptyObject, retu

const parentReport = getRootParentReport(report);

// Public rooms send back the policy name with the reportSummary,
// Rooms send back the policy name with the reportSummary,
// since they can also be accessed by people who aren't in the workspace
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
const policyName = finalPolicy?.name || report?.policyName || report?.oldPolicyName || parentReport?.oldPolicyName || noPolicyFound;
Expand Down

0 comments on commit 6633280

Please sign in to comment.