Refactor settings page

This commit is contained in:
gpt-engineer-app[bot]
2025-09-28 20:58:08 +00:00
parent e841fd2b7c
commit 98b06cdf6e
4 changed files with 16 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ export function LocationTab() {
timezone: profile?.timezone || 'UTC',
preferred_language: profile?.preferred_language || 'en',
personal_location: (profile as any)?.personal_location || '',
home_park_id: profile?.location_id || ''
home_park_id: (profile as any)?.home_park_id || ''
}
});
useEffect(() => {
@@ -98,7 +98,7 @@ export function LocationTab() {
timezone: data.timezone,
preferred_language: data.preferred_language,
personal_location: data.personal_location || null,
location_id: data.home_park_id || null,
home_park_id: data.home_park_id || null,
updated_at: new Date().toISOString()
}).eq('user_id', user.id);