Skip to content

Commit

Permalink
Merge pull request #23358 from ginsuma/fix/22997
Browse files Browse the repository at this point in the history
Fix shouldUseFullTitle

(cherry picked from commit 33ed167)
  • Loading branch information
arosiclair authored and OSBotify committed Jul 24, 2023
1 parent 1f98476 commit baf1a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/ReportDetailsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function ReportDetailsPage(props) {
const policy = useMemo(() => props.policies[`${ONYXKEYS.COLLECTION.POLICY}${props.report.policyID}`], [props.policies, props.report.policyID]);
const isPolicyAdmin = useMemo(() => PolicyUtils.isPolicyAdmin(policy), [policy]);
const shouldDisableSettings = useMemo(() => ReportUtils.shouldDisableSettings(props.report), [props.report]);
const shouldUseFullTitle = shouldDisableSettings;
const shouldUseFullTitle = !shouldDisableSettings;
const isThread = useMemo(() => ReportUtils.isChatThread(props.report), [props.report]);
const isUserCreatedPolicyRoom = useMemo(() => ReportUtils.isUserCreatedPolicyRoom(props.report), [props.report]);
const isArchivedRoom = useMemo(() => ReportUtils.isArchivedRoom(props.report), [props.report]);
Expand Down

0 comments on commit baf1a48

Please sign in to comment.