simplify null check.
MODIFY
WalletWasabi.Fluent/ViewModels/Search/SearchPageViewModel.cs
WalletWasabi.Fluent/ViewModels/Search/SearchPageViewModel.cs
@@ -44,9 +44,7 @@ public partial class SearchPageViewModel : NavBarItemViewModel
.Select(SearchQueryFilter)
.DistinctUntilChanged();
- if (_sourceObservable is { })
- {
- _sourceObservable
+ _sourceObservable?
.Filter(queryFilter)
.GroupWithImmutableState(x => x.Category)
.Transform(grouping =>
@@ -57,7 +55,6 @@ public partial class SearchPageViewModel : NavBarItemViewModel
.Bind(out _searchResults)
.AsObservableList();
}
- }
public void RegisterCategory(string title, int order)
{

simplify null check.