mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 08:11:13 -05:00
Refactor settings page
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user