Skip to content

Commit 3d6c64b

Browse files
authored
Merge pull request #61727 from ChavdaSachin/fix-61631/render-outstanding-tooltip-only-for-expense-
Render outstanding tooltip only on expense & expense reports page.
2 parents a3446b8 + 5a4b23f commit 3d6c64b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Search/SearchPageHeader/SearchStatusBar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ function SearchStatusBar({queryJSON, onStatusChange, headerButtonsOptions}: Sear
271271
: queryJSON.status === CONST.SEARCH.STATUS.EXPENSE.OUTSTANDING;
272272
const {renderProductTrainingTooltip, shouldShowProductTrainingTooltip, hideProductTrainingTooltip} = useProductTrainingContext(
273273
CONST.PRODUCT_TRAINING_TOOLTIP_NAMES.OUTSANDING_FILTER,
274-
isScreenFocused && !isOutstandingStatusActive,
274+
isScreenFocused && !isOutstandingStatusActive && queryJSON.type === CONST.SEARCH.DATA_TYPES.EXPENSE,
275275
);
276276
// Controls the visibility of the educational tooltip based on user scrolling.
277277
// Hides the tooltip when the user is scrolling and displays it once scrolling stops.

0 commit comments

Comments
 (0)