diff --git a/tauri-app/src/lib/storesGeneric/cachedWritableStore.ts b/tauri-app/src/lib/storesGeneric/cachedWritableStore.ts index 2b3f4b582..21f8fb4e8 100644 --- a/tauri-app/src/lib/storesGeneric/cachedWritableStore.ts +++ b/tauri-app/src/lib/storesGeneric/cachedWritableStore.ts @@ -11,7 +11,7 @@ export function cachedWritableStore( return cached ? deserialize(cached) : defaultValue; } const setCache = (value?: T) => { - if(value) { + if(value !== undefined) { localStorage.setItem(key, serialize(value)); } else { localStorage.removeItem(key);