diff --git a/lib/shared/components/molecules/menu/data/data_sources/menu_local_data_source.dart b/lib/shared/components/molecules/menu/data/data_sources/menu_local_data_source.dart index 84c0ffa8..f88d1c55 100644 --- a/lib/shared/components/molecules/menu/data/data_sources/menu_local_data_source.dart +++ b/lib/shared/components/molecules/menu/data/data_sources/menu_local_data_source.dart @@ -39,7 +39,7 @@ class MenuLocalDataSourceImpl implements MenuLocalDataSource { @override Future processDisplayDefault(EnumMenuItem item, MenuEntry opt, List 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; }