From c0c8580584227badfa13ca190201a5fa2fd1ef18 Mon Sep 17 00:00:00 2001 From: Mykhailo Kravchenko Date: Mon, 20 Nov 2023 16:02:40 +0100 Subject: [PATCH] simplify condition --- src/libs/ReportUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index cf4ebf81fedc..820e21583dbc 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -2947,7 +2947,7 @@ function buildOptimisticChatReport( chatType, hasOutstandingIOU: false, isOwnPolicyExpenseChat, - isPinned: reportName === CONST.REPORT.WORKSPACE_CHAT_ROOMS.ADMINS || (reportName !== CONST.TEACHERS_UNITE.POLICY_NAME && isNewlyCreatedWorkspaceChat), + isPinned: reportName === CONST.REPORT.WORKSPACE_CHAT_ROOMS.ADMINS || isNewlyCreatedWorkspaceChat, lastActorAccountID: 0, lastMessageTranslationKey: '', lastMessageHtml: '',