From 7459008d466d9126466a5220bcec110b9b161ad0 Mon Sep 17 00:00:00 2001 From: Frederik Feichtmeier Date: Sun, 25 Aug 2024 23:11:53 +0200 Subject: [PATCH] fix: Must search by name before searching by tag, country, or language (#897) Fixes #896 --- lib/search/view/sliver_radio_search_results.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/search/view/sliver_radio_search_results.dart b/lib/search/view/sliver_radio_search_results.dart index c576a6104..3add6501d 100644 --- a/lib/search/view/sliver_radio_search_results.dart +++ b/lib/search/view/sliver_radio_search_results.dart @@ -70,9 +70,8 @@ class _SliverRadioSearchResultsState extends State { final searchType = watchPropertyValue((SearchModel m) => m.searchType); final loading = watchPropertyValue((SearchModel m) => m.loading); - if (searchQuery == null || - radioSearchResult == null || - (searchQuery.isEmpty == true && radioSearchResult.isEmpty == true)) { + if (radioSearchResult == null || + (searchQuery?.isEmpty == true && radioSearchResult.isEmpty == true)) { return SliverFillNoSearchResultPage( icon: const AnimatedEmoji(AnimatedEmojis.drum), message: