fall back to empty settings object

This commit is contained in:
Brian Beck 2025-11-14 13:29:30 -08:00
parent fc4146c824
commit fefa01b6f9

View file

@ -34,7 +34,7 @@ export function SettingsProvider({ children }: { children: React.ReactNode }) {
useEffect(() => {
let savedSettings: PersistedSettings = {};
try {
savedSettings = JSON.parse(localStorage.getItem("settings"));
savedSettings = JSON.parse(localStorage.getItem("settings")) || {};
} catch (err) {
// Ignore.
}