This commit is contained in:
J. A. Messias 2024-12-04 14:05:25 -03:00
parent 97c2180dcc
commit 6e2ccc209b
1 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ class MenuLocalDataSourceImpl implements MenuLocalDataSource {
@override
Future<bool> processDisplayDefault(EnumMenuItem item, MenuEntry opt, List<MenuItem?> entries) async {
if (opt.key == 'FRE-HUB-LOGOUT') {
if (opt.value == 'FRE-HUB-LOGOUT') {
await addMenuEntry(item, entries, opt.icon, opt.name, () async {
await AuthenticationService.signOut(navigatorKey.currentContext!);
});
@ -67,7 +67,7 @@ class MenuLocalDataSourceImpl implements MenuLocalDataSource {
break;
}
} catch (e) {
log('Error processing display for module ${opt.key}: $e');
log('Error processing display for module ${opt.value}: $e');
}
}
@ -78,7 +78,7 @@ class MenuLocalDataSourceImpl implements MenuLocalDataSource {
final start = DateTime.tryParse(startDate);
return start != null && DateTime.now().isAfter(start);
} catch (e) {
log('Error processing start date for module ${opt.key}: $e');
log('Error processing start date for module ${opt.value}: $e');
}
return false;
}
@ -90,7 +90,7 @@ class MenuLocalDataSourceImpl implements MenuLocalDataSource {
final expiration = DateTime.tryParse(expirationDate);
return expiration != null && DateTime.now().isAfter(expiration);
} catch (e) {
log('Error processing expiration date for module ${opt.key}: $e');
log('Error processing expiration date for module ${opt.value}: $e');
}
return false;
}