fix compilations

This commit is contained in:
2026-02-19 13:41:58 +05:30
parent 3b7715a382
commit 9234c26dad
10 changed files with 36 additions and 473 deletions

View File

@@ -66,18 +66,6 @@ class _SessionListenerState extends State<SessionListener> {
_sessionExpiredDialogShown = false;
debugPrint('[SessionListener] Authenticated: ${state.userId}');
if (StaffSessionStore.instance.session == null) {
try {
final AuthRepositoryInterface authRepo =
Modular.get<AuthRepositoryInterface>();
await authRepo.restoreSession();
} catch (e) {
if (mounted) {
_proceedToLogin();
}
return;
}
}
// Navigate to the main app
Modular.to.toStaffHome();