diff --git a/lib/Frontend/Widgets/tail_blog.dart b/lib/Frontend/Widgets/tail_blog.dart index 0c80fb49..61dd03d6 100644 --- a/lib/Frontend/Widgets/tail_blog.dart +++ b/lib/Frontend/Widgets/tail_blog.dart @@ -164,13 +164,13 @@ class _TailBlogState extends State { } } } - if (mounted && context.mounted && results.isNotEmpty) { + if (mounted && context.mounted) { setState(() { - feedState = FeedState.loaded; - }); - } else if (context.mounted) { - setState(() { - feedState = FeedState.error; + if (results.isNotEmpty) { + feedState = FeedState.loaded; + } else { + feedState = FeedState.error; + } }); } }