Skip to content

Commit e421109

Browse files
Merge branch 'Expensify:main' into PiyushChandra17/refactor/splitphrase/preventFutureActivity
2 parents 2967d12 + 74e1436 commit e421109

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

src/libs/SidebarUtils.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,7 @@ function shouldDisplayReportInLHN(
238238
const isSystemChat = isSystemChatUtil(report);
239239
const isReportArchived = isArchivedReport(reportNameValuePairs);
240240
const shouldOverrideHidden =
241-
hasValidDraftComment(report.reportID) ||
242-
hasErrorsOtherThanFailedReceipt ||
243-
isFocused ||
244-
isSystemChat ||
245-
!!report.isPinned ||
246-
(!isInFocusMode && isReportArchived) ||
247-
reportAttributes?.[report?.reportID]?.requiresAttention;
241+
hasValidDraftComment(report.reportID) || hasErrorsOtherThanFailedReceipt || isFocused || isSystemChat || !!report.isPinned || reportAttributes?.[report?.reportID]?.requiresAttention;
248242

249243
if (isHidden && !shouldOverrideHidden) {
250244
return {shouldDisplay: false};

src/pages/Search/SearchTypeMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function SearchTypeMenu({queryJSON}: SearchTypeMenuProps) {
238238
const previousItemCount = typeMenuSections.slice(0, sectionIndex).reduce((acc, sec) => acc + sec.menuItems.length, 0);
239239
const flattenedIndex = previousItemCount + itemIndex;
240240
const focused = activeItemIndex === flattenedIndex;
241-
const shouldShowTooltip = item.translationPath === 'common.expenseReports' && !focused && shouldShowExpenseReportsTypeTooltip;
241+
const shouldShowTooltip = item.translationPath === 'common.reports' && !focused && shouldShowExpenseReportsTypeTooltip;
242242

243243
const onPress = singleExecution(() => {
244244
if (shouldShowTooltip) {

0 commit comments

Comments
 (0)