diff --git a/src/components/Settings/SettingsPage.js b/src/components/Settings/SettingsPage.js index 26b8072..9dc8a64 100644 --- a/src/components/Settings/SettingsPage.js +++ b/src/components/Settings/SettingsPage.js @@ -5,7 +5,7 @@ import '../../styles/components.css'; const DEFAULT_SETTINGS = { timezone: Intl.DateTimeFormat().resolvedOptions().timeZone || 'UTC', theme: 'light', - notifications: true, + language: 'es', apiBaseUrl: '' }; @@ -14,7 +14,9 @@ const loadSettings = () => { const raw = localStorage.getItem('app_settings'); if (!raw) return DEFAULT_SETTINGS; const parsed = JSON.parse(raw); - return { ...DEFAULT_SETTINGS, ...parsed }; + // Strip deprecated fields like 'notifications' if present in older storage + const { notifications, ...rest } = parsed || {}; + return { ...DEFAULT_SETTINGS, ...rest }; } catch { return DEFAULT_SETTINGS; } @@ -99,15 +101,11 @@ const SettingsPage = () => {
- + +