diff --git a/app/src/main/java/eu/kanade/presentation/more/download/DownloadStatsScreenState.kt b/app/src/main/java/eu/kanade/presentation/more/download/DownloadStatsScreenState.kt index fe4acbd82e..f8c63d45b0 100644 --- a/app/src/main/java/eu/kanade/presentation/more/download/DownloadStatsScreenState.kt +++ b/app/src/main/java/eu/kanade/presentation/more/download/DownloadStatsScreenState.kt @@ -37,8 +37,8 @@ data class DownloadStatsScreenState( .filter { if (searchQuery != null) { it.libraryManga.manga.title.contains(searchQuery, true) || - if (groupByMode == GroupByMode.BY_SOURCE) { it.source.name.contains(searchQuery, true) } else { false } || - if (groupByMode == GroupByMode.BY_CATEGORY) { it.category.name.contains(searchQuery, true) } else { false } + if (groupByMode == GroupByMode.BY_SOURCE) { it.source.name.contains(searchQuery, true) } else { false } || + if (groupByMode == GroupByMode.BY_CATEGORY) { it.category.name.contains(searchQuery, true) } else { false } } else { true }