Skip to content

Commit 0f7b534

Browse files
committed
show group currency only if grouping by from/card
1 parent fcc8e09 commit 0f7b534

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Search/SearchPageHeader/SearchFiltersBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ function SearchFiltersBar({queryJSON, headerButtonsOptions, isMobileSelectionMod
410410
const fromValue = filterFormValues.from?.map((accountID) => personalDetails?.[accountID]?.displayName ?? accountID) ?? [];
411411

412412
const shouldDisplayGroupByFilter = !!groupBy;
413-
const shouldDisplayGroupCurrencyFilter = !!groupBy && hasMultipleOutputCurrency;
413+
const shouldDisplayGroupCurrencyFilter = (groupBy?.value === CONST.SEARCH.GROUP_BY.FROM || groupBy?.value === CONST.SEARCH.GROUP_BY.CARD) && hasMultipleOutputCurrency;
414414
const shouldDisplayFeedFilter = feedOptions.length > 1 && !!filterFormValues.feed;
415415
const shouldDisplayPostedFilter = !!filterFormValues.feed && (!!filterFormValues.postedOn || !!filterFormValues.postedAfter || !!filterFormValues.postedBefore);
416416
// We'll refactor this to use a const in https://github.com/Expensify/App/issues/68227

0 commit comments

Comments
 (0)