From f48274706a60abc6475554a4cb7b54f0eec968f7 Mon Sep 17 00:00:00 2001 From: Patrick Britton Date: Sat, 7 Feb 2026 12:07:04 -0600 Subject: [PATCH] fix: cast birthYear subtraction to int to fix build error --- sojorn_app/lib/screens/profile/profile_settings_screen.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }