diff --git a/userfront/lib/features/dashboard/presentation/dashboard_screen.dart b/userfront/lib/features/dashboard/presentation/dashboard_screen.dart index a3c5399f..2bcae7c6 100644 --- a/userfront/lib/features/dashboard/presentation/dashboard_screen.dart +++ b/userfront/lib/features/dashboard/presentation/dashboard_screen.dart @@ -849,10 +849,10 @@ class _DashboardScreenState extends ConsumerState { final userName = (profile?.name.trim().isNotEmpty ?? false) ? profile!.name : (profile?.email.trim().isNotEmpty ?? false) - ? profile!.email - : (profile?.phone.trim().isNotEmpty ?? false) - ? profile!.phone - : tr('ui.userfront.profile.user_fallback', fallback: 'User'); + ? profile!.email + : (profile?.phone.trim().isNotEmpty ?? false) + ? profile!.phone + : tr('ui.userfront.profile.user_fallback', fallback: 'User'); final departmentValue = profile?.tenant?.name ?? profile?.department ?? ''; final department = departmentValue.isNotEmpty diff --git a/userfront/lib/main.dart b/userfront/lib/main.dart index e8b05192..f33ef9f0 100644 --- a/userfront/lib/main.dart +++ b/userfront/lib/main.dart @@ -86,11 +86,15 @@ Future _silentSessionRecovery() async { useCookie: false, ); if (status == 401 || status == 403) { - _log.warning("[SessionRecovery] Local token is invalid. Clearing store."); + _log.warning( + "[SessionRecovery] Local token is invalid. Clearing store.", + ); AuthTokenStore.clear(); return; } - _log.info("[SessionRecovery] Local token is valid. Skipping cookie check."); + _log.info( + "[SessionRecovery] Local token is valid. Skipping cookie check.", + ); return; } catch (e) { _log.info("[SessionRecovery] Failed to verify local token: $e");