fix compilations
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user