Skip to content

Commit b3f1699

Browse files
MelvinBotbernhardoj
andcommitted
Update shouldShowFooter to show footer totals even when all matching items selected
Co-authored-by: Bernhard Owen Josephus <bernhardoj@users.noreply.github.com>
1 parent 65fb732 commit b3f1699

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/Search/SearchPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function SearchPage({route}: SearchPageProps) {
7777

7878
const metadata = searchResults?.search;
7979
const shouldAllowFooterTotals = useSearchShouldCalculateTotals(currentSearchKey, currentSearchQueryJSON?.hash, true);
80-
const shouldShowFooter = !areAllMatchingItemsSelected && (selectedTransactionsKeys.length > 0 || (shouldAllowFooterTotals && !!metadata?.count));
80+
const shouldShowFooter = (!areAllMatchingItemsSelected && selectedTransactionsKeys.length > 0) || (shouldAllowFooterTotals && !!metadata?.count);
8181

8282
useEffect(() => {
8383
if (shouldUseNarrowLayout) {

0 commit comments

Comments
 (0)