Skip to content

Commit

Permalink
simpler condition
Browse files Browse the repository at this point in the history
  • Loading branch information
rlinoz committed Apr 22, 2024
1 parent f15d3fd commit 2126f53
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function MentionReportRenderer({style, tnode, TDefaultRenderer, reports, ...defa

// When we invite someone to a room they don't have the policy object, but we still want them to be able to see and click on report mentions, so we only check if the policyID in the report is from a workspace
const isGroupPolicyReport = useMemo(
() => (currentReport && !isEmptyObject(currentReport) ? !!currentReport.policyID && currentReport.policyID !== CONST.POLICY.ID_FAKE : false),
() => currentReport && !isEmptyObject(currentReport) && !!currentReport.policyID && currentReport.policyID !== CONST.POLICY.ID_FAKE,
[currentReport],
);

Expand Down

0 comments on commit 2126f53

Please sign in to comment.