diff --git a/lib/redux/app/app_middleware.dart b/lib/redux/app/app_middleware.dart index 82a22a0051a..7779acc7c80 100644 --- a/lib/redux/app/app_middleware.dart +++ b/lib/redux/app/app_middleware.dart @@ -563,9 +563,10 @@ Middleware _createViewMainScreen() { final action = dynamicAction as ViewMainScreen; if (store.state.uiState.currentRoute == LoginScreen.route) { - store.dispatch(UpdateCurrentRoute(store.state.userCompany.canViewDashboard - ? DashboardScreenBuilder.route - : ClientScreen.route)); + store.dispatch(UpdateCurrentRoute( + store.state.userCompany.canViewDashboard || store.state.isDemo + ? DashboardScreenBuilder.route + : ClientScreen.route)); } while (navigatorKey.currentState.canPop()) {