Skip to content

Commit

Permalink
Remove redundant error snackbar
Browse files Browse the repository at this point in the history
  • Loading branch information
jmshrv committed Sep 22, 2023
1 parent d56f909 commit 0b38574
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/screens/view_selector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ class _ViewSelectorState extends State<ViewSelector> {

void _submitChoice() {
if (_views.values.where((element) => element == true).isEmpty) {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(content: Text("A library is required.")));
// This should no longer be possible since the submit button only shows
// when views are selected, but we return just in case
return;
} else {
try {
_finampUserHelper.setCurrentUserViews(_views.entries
Expand Down

0 comments on commit 0b38574

Please sign in to comment.