From b9243e9ca3a67e239d05a2767cf41566c72432a9 Mon Sep 17 00:00:00 2001 From: Taso Date: Thu, 1 Apr 2021 13:45:26 -0400 Subject: [PATCH] tweak(phone/settings): Type safety for settings state --- phone/src/apps/settings/hooks/useSettings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phone/src/apps/settings/hooks/useSettings.ts b/phone/src/apps/settings/hooks/useSettings.ts index dc256e5..febc10c 100644 --- a/phone/src/apps/settings/hooks/useSettings.ts +++ b/phone/src/apps/settings/hooks/useSettings.ts @@ -106,7 +106,7 @@ const localStorageEffect = (key) => ({ setSelf, onSet }) => { }); }; -export const settingsState = atom({ +export const settingsState = atom({ key: 'settings', default: config.defaultSettings, effects_UNSTABLE: [localStorageEffect(NPWD_STORAGE_KEY)],