fix: bail to home when season list is empty on title card
This commit is contained in:
@@ -53,6 +53,11 @@ class _SeasonTitleScreenState extends ConsumerState<SeasonTitleScreen> {
|
||||
backgroundColor: Color(0xFF0E1430), body: SizedBox());
|
||||
},
|
||||
data: (list) {
|
||||
if (list.isEmpty) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) => _go());
|
||||
return const Scaffold(
|
||||
backgroundColor: Color(0xFF0E1430), body: SizedBox());
|
||||
}
|
||||
if (!_dataTimerArmed) {
|
||||
_dataTimerArmed = true;
|
||||
_auto?.cancel();
|
||||
|
||||
Reference in New Issue
Block a user