From fefa01b6f91f61ee29bda94380b9d7df3c23778f Mon Sep 17 00:00:00 2001 From: Brian Beck Date: Fri, 14 Nov 2025 13:29:30 -0800 Subject: [PATCH] fall back to empty settings object --- app/SettingsProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/SettingsProvider.tsx b/app/SettingsProvider.tsx index ea7b52ed..0925ca3e 100644 --- a/app/SettingsProvider.tsx +++ b/app/SettingsProvider.tsx @@ -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. }