From d05e98d15f551aaae6fa89d113cad2c0f9fc2cd9 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 5 Oct 2023 12:20:51 +0300 Subject: [PATCH] Fix navigating to settings on mobile --- lib/redux/app/app_actions.dart | 4 +++- lib/ui/app/menu_drawer.dart | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/redux/app/app_actions.dart b/lib/redux/app/app_actions.dart index 38510bf3b..01d1ea575 100644 --- a/lib/redux/app/app_actions.dart +++ b/lib/redux/app/app_actions.dart @@ -374,7 +374,9 @@ void viewEntitiesByType({ company: store.state.company, user: store.state.user, clearFilter: true, - section: kSettingsCompanyDetails, + section: store.state.prefState.isMobile + ? null + : kSettingsCompanyDetails, ); break; case EntityType.client: diff --git a/lib/ui/app/menu_drawer.dart b/lib/ui/app/menu_drawer.dart index 3bb73781b..565b05753 100644 --- a/lib/ui/app/menu_drawer.dart +++ b/lib/ui/app/menu_drawer.dart @@ -486,8 +486,7 @@ class _MenuDrawerState extends State { child: ListTile( tileColor: Colors.orange.shade800, subtitle: Text( - localization - .verifyPhoneNumber2faHelp, + localization.verifyPhoneNumber2faHelp, style: TextStyle(color: Colors.white), ), onTap: () {