diff --git a/src/languages/en.ts b/src/languages/en.ts index 7a1de818748f..cc766865c57b 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -1230,7 +1230,7 @@ export default { }, groupChat: { groupMembersListTitle: 'Directory of all group members.', - lastMemberWarning: 'Heads up! Since you\'re the last person here, leaving will make this chat inaccessible to all users. Are you sure you want to leave?', + lastMemberWarning: "Heads up! Since you're the last person here, leaving will make this chat inaccessible to all users. Are you sure you want to leave?", defaultReportName: ({displayName}: {displayName: string}) => `${displayName}'s group chat`, }, languagePage: { diff --git a/src/pages/home/ReportScreen.tsx b/src/pages/home/ReportScreen.tsx index b24057f5fe92..5f3befc1ac6c 100644 --- a/src/pages/home/ReportScreen.tsx +++ b/src/pages/home/ReportScreen.tsx @@ -475,9 +475,11 @@ function ReportScreen({ const onyxReportID = report.reportID; const prevOnyxReportID = prevReport.reportID; const wasReportRemoved = !!prevOnyxReportID && prevOnyxReportID === reportIDFromRoute && !onyxReportID; - const isRemovalExpectedForReportType = isEmpty(report) && (ReportUtils.isMoneyRequest(prevReport) || ReportUtils.isMoneyRequestReport(prevReport) || ReportUtils.isPolicyExpenseChat(prevReport) || ReportUtils.isGroupChat(prevReport)); + const isRemovalExpectedForReportType = + isEmpty(report) && + (ReportUtils.isMoneyRequest(prevReport) || ReportUtils.isMoneyRequestReport(prevReport) || ReportUtils.isPolicyExpenseChat(prevReport) || ReportUtils.isGroupChat(prevReport)); const didReportClose = wasReportRemoved && prevReport.statusNum === CONST.REPORT.STATUS_NUM.OPEN && report.statusNum === CONST.REPORT.STATUS_NUM.CLOSED; - const isTopLevelPolicyRoomWithNoStatus = !report.statusNum && !prevReport.parentReportID && (prevReport.chatType === CONST.REPORT.CHAT_TYPE.POLICY_ROOM); + const isTopLevelPolicyRoomWithNoStatus = !report.statusNum && !prevReport.parentReportID && prevReport.chatType === CONST.REPORT.CHAT_TYPE.POLICY_ROOM; const isClosedTopLevelPolicyRoom = wasReportRemoved && prevReport.statusNum === CONST.REPORT.STATUS_NUM.OPEN && isTopLevelPolicyRoomWithNoStatus; // Navigate to the Concierge chat if the room was removed from another device (e.g. user leaving a room or removed from a room)