Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
fix-issue-3488
Browse files Browse the repository at this point in the history
  • Loading branch information
shamim-emon committed Sep 13, 2024
1 parent cba4d23 commit 5aee55e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ class CategoriesViewModel @Inject constructor(
private fun getCategories(): ImmutableList<CategoryData> {
val allCats = categories.value
return remember(allCats, searchQuery.value) {
allCats.filter { searchQuery.value.lowercase().trim() in it.category.name.toString().lowercase() }.toImmutableList()
allCats.filter {
searchQuery.value.lowercase().trim() in it.category.name.toString().lowercase()
}.toImmutableList()
}
}

Expand Down

0 comments on commit 5aee55e

Please sign in to comment.