diff --git a/das_client/lib/pages/fahrt/fahrt_page.dart b/das_client/lib/pages/fahrt/fahrt_page.dart index 415d96ce..025f3ad2 100644 --- a/das_client/lib/pages/fahrt/fahrt_page.dart +++ b/das_client/lib/pages/fahrt/fahrt_page.dart @@ -43,7 +43,7 @@ class FahrtPageContent extends StatelessWidget { IconButton( icon: const Icon(SBBIcons.exit_small), onPressed: () { - if (BlocProvider.of(context).state is SelectingFahrbildState) { + if (context.fahrbildCubit.state is SelectingFahrbildState) { context.authCubit.logout(); context.router.replace(const LoginRoute()); } else {