1
0

fix Display groups

Dieser Commit ist enthalten in:
Chaoscaot 2023-02-15 18:48:55 +01:00
Ursprung d38c4bedbd
Commit 96e9c9264b

Datei anzeigen

@ -95,8 +95,9 @@ class DisplayScreenLoaded extends HookConsumerWidget {
@override
Widget build(BuildContext context, WidgetRef ref) {
final fights = useState(
eventData.fights.where((element) => element.group == group).toList());
final fights = useState(eventData.fights
.where((element) => group == null || element.group == group)
.toList());
final nextFight = useMemoized(() {
Future.delayed(const Duration(seconds: 30), () async {
fights.value = (await (await ref.read(eventRepositoryProvider.future))