Skip to content

Commit

Permalink
Merge pull request #13124 from hellohublot/12045_fix_blank_page_use_s…
Browse files Browse the repository at this point in the history
…houldReportBeInOptionList
  • Loading branch information
dangrous authored Dec 1, 2022
2 parents 820e876 + 86fd5c3 commit c10d5fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/home/ReportScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,12 @@ class ReportScreen extends React.Component {
// We create policy rooms for all policies, however we don't show them unless
// - It's a free plan workspace
// - The report includes guides participants (@team.expensify.com) for 1:1 Assigned
// - It's an archived room
if (!Permissions.canUseDefaultRooms(this.props.betas)
&& ReportUtils.isDefaultRoom(this.props.report)
&& ReportUtils.getPolicyType(this.props.report, this.props.policies) !== CONST.POLICY.TYPE.FREE
&& !ReportUtils.hasExpensifyGuidesEmails(lodashGet(this.props.report, ['participants'], []))
&& !ReportUtils.isArchivedRoom(this.props.report)
) {
return null;
}
Expand Down

0 comments on commit c10d5fb

Please sign in to comment.