Skip to content

A self-hosted media server and file management system

fix: code smell

aminnausin114318477d9e
diff --git a/resources/js/stores/AppStore.ts b/resources/js/stores/AppStore.ts
index 8474d103..b0332b43 100644
--- a/resources/js/stores/AppStore.ts
+++ b/resources/js/stores/AppStore.ts
@@ -34,7 +34,7 @@ function usePersistedString<T extends string>(key: string, defaultValue: T) {
function init() {
const cached = localStorage.getItem(key);
- state.value = cached === null ? defaultValue : cached;
+ state.value = cached ?? defaultValue;
localStorage.setItem(key, state.value);
}