Skip to content

Commit

Permalink
fix fahrt page
Browse files Browse the repository at this point in the history
  • Loading branch information
Grodien committed Oct 28, 2024
1 parent fbf42be commit 6b56cfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion das_client/lib/pages/fahrt/fahrt_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class FahrtPageContent extends StatelessWidget {
IconButton(
icon: const Icon(SBBIcons.exit_small),
onPressed: () {
if (BlocProvider.of<FahrbildCubit>(context).state is SelectingFahrbildState) {
if (context.fahrbildCubit.state is SelectingFahrbildState) {
context.authCubit.logout();
context.router.replace(const LoginRoute());
} else {
Expand Down

0 comments on commit 6b56cfe

Please sign in to comment.