fix: cast birthYear subtraction to int to fix build error

This commit is contained in:
Patrick Britton 2026-02-07 12:07:04 -06:00
parent 6e8cc5d802
commit f48274706a

View file

@ -425,7 +425,7 @@ class _ProfileSettingsScreenState extends ConsumerState<ProfileSettingsScreen> {
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;
}