Skip to content

Commit

Permalink
Merge pull request #153 from enrique-lozano/feat/filter-improvements
Browse files Browse the repository at this point in the history
Disable filters with no accounts/categories
  • Loading branch information
enrique-lozano authored May 1, 2024
2 parents af6b883 + b2cee7f commit 852197c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ class _FilterSheetModalState extends State<FilterSheetModal> {
footer: BottomSheetFooter(
onSaved: !(_formKey.currentState?.validate() ?? true) ||
filtersToReturn.tagsIDs != null &&
filtersToReturn.tagsIDs!.isEmpty
filtersToReturn.tagsIDs!.isEmpty ||
filtersToReturn.accountsIDs != null &&
filtersToReturn.accountsIDs!.isEmpty ||
filtersToReturn.categories != null &&
filtersToReturn.categories!.isEmpty
? null
: () => Navigator.of(context).pop(filtersToReturn)),
body: Stack(
Expand Down

0 comments on commit 852197c

Please sign in to comment.