Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dashboard/src/pages/SettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function loadSettings(): Settings {
const stored = localStorage.getItem(STORAGE_KEY);
if (stored) return { ...DEFAULT_SETTINGS, ...JSON.parse(stored) };
} catch (err) {
console.warn('SettingsPage: failed to load settings from localStorage:', err);
if (import.meta.env.DEV) console.warn('SettingsPage: failed to load settings from localStorage:', err);
}
return DEFAULT_SETTINGS;
}
Expand All @@ -47,7 +47,7 @@ function saveSettings(s: Settings): void {
try {
localStorage.setItem(STORAGE_KEY, JSON.stringify(s));
} catch (err) {
console.warn('SettingsPage: failed to save settings to localStorage:', err);
if (import.meta.env.DEV) console.warn('SettingsPage: failed to save settings to localStorage:', err);
}
}

Expand Down Expand Up @@ -155,7 +155,7 @@ export default function SettingsPage() {
localStorage.removeItem('aegis:onboarded');
sessionStorage.removeItem('aegis:onboarded');
} catch (err) {
console.warn('SettingsPage: failed to clear onboarding flag:', err);
if (import.meta.env.DEV) console.warn('SettingsPage: failed to clear onboarding flag:', err);
}
window.location.reload();
}, []);
Expand Down
Loading