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());
|
backgroundColor: Color(0xFF0E1430), body: SizedBox());
|
||||||
},
|
},
|
||||||
data: (list) {
|
data: (list) {
|
||||||
|
if (list.isEmpty) {
|
||||||
|
WidgetsBinding.instance.addPostFrameCallback((_) => _go());
|
||||||
|
return const Scaffold(
|
||||||
|
backgroundColor: Color(0xFF0E1430), body: SizedBox());
|
||||||
|
}
|
||||||
if (!_dataTimerArmed) {
|
if (!_dataTimerArmed) {
|
||||||
_dataTimerArmed = true;
|
_dataTimerArmed = true;
|
||||||
_auto?.cancel();
|
_auto?.cancel();
|
||||||
|
|||||||
Reference in New Issue
Block a user