diff --git a/sojorn_app/lib/screens/profile/profile_settings_screen.dart b/sojorn_app/lib/screens/profile/profile_settings_screen.dart index 5d6a3b3..e1db71d 100644 --- a/sojorn_app/lib/screens/profile/profile_settings_screen.dart +++ b/sojorn_app/lib/screens/profile/profile_settings_screen.dart @@ -425,7 +425,7 @@ class _ProfileSettingsScreenState extends ConsumerState { bool isUnder18 = false; if (profile != null && profile.birthYear > 0) { final now = DateTime.now(); - int age = now.year - profile.birthYear; + int age = (now.year - profile.birthYear).toInt(); if (now.month < profile.birthMonth) age--; isUnder18 = age < 18; }