Skip to content

Commit

Permalink
fix: Must search by name before searching by tag, country, or language (
Browse files Browse the repository at this point in the history
#897)

Fixes #896
  • Loading branch information
Feichtmeier authored Aug 25, 2024
1 parent 924dd41 commit 7459008
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/search/view/sliver_radio_search_results.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ class _SliverRadioSearchResultsState extends State<SliverRadioSearchResults> {
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:
Expand Down

0 comments on commit 7459008

Please sign in to comment.