diff options
| author | Fuwn <[email protected]> | 2025-06-11 23:52:43 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-06-11 23:52:43 -0700 |
| commit | 1bc4488a06db88597327ecc855c5b70a7ddc55ce (patch) | |
| tree | ded544d953d4b62fc4365c2758d75f02efe7d625 /src/stores | |
| parent | fix: Migrate localStorage.removeItem to localforage for anime and manga stores (diff) | |
| download | due.moe-1bc4488a06db88597327ecc855c5b70a7ddc55ce.tar.xz due.moe-1bc4488a06db88597327ecc855c5b70a7ddc55ce.zip | |
style: Reformat using latest formatting
Diffstat (limited to 'src/stores')
| -rw-r--r-- | src/stores/identity.ts | 2 | ||||
| -rw-r--r-- | src/stores/lastPruneTimes.ts | 2 | ||||
| -rw-r--r-- | src/stores/settings.ts | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/stores/identity.ts b/src/stores/identity.ts index 1b0aee90..2618d744 100644 --- a/src/stores/identity.ts +++ b/src/stores/identity.ts @@ -12,7 +12,7 @@ const createStore = () => { const { subscribe, set, update } = writable<UserIdentity>( JSON.parse( browser - ? localStorage.getItem('identity') ?? JSON.stringify(defaultIdentity) + ? (localStorage.getItem('identity') ?? JSON.stringify(defaultIdentity)) : JSON.stringify(defaultIdentity) ) ); diff --git a/src/stores/lastPruneTimes.ts b/src/stores/lastPruneTimes.ts index 802ad86e..9c4afc5b 100644 --- a/src/stores/lastPruneTimes.ts +++ b/src/stores/lastPruneTimes.ts @@ -17,7 +17,7 @@ const createStore = () => { const { subscribe, set, update } = writable<LastPruneTimes>( JSON.parse( browser - ? localStorage.getItem('lastPruneTimes') ?? JSON.stringify(defaultTimes) + ? (localStorage.getItem('lastPruneTimes') ?? JSON.stringify(defaultTimes)) : JSON.stringify(defaultTimes) ) ); diff --git a/src/stores/settings.ts b/src/stores/settings.ts index d250e1c1..fef0debf 100644 --- a/src/stores/settings.ts +++ b/src/stores/settings.ts @@ -138,7 +138,7 @@ const createStore = () => { const { subscribe, set, update } = writable<Settings>( JSON.parse( browser - ? localStorage.getItem('settings') ?? JSON.stringify(defaultSettings) + ? (localStorage.getItem('settings') ?? JSON.stringify(defaultSettings)) : JSON.stringify(defaultSettings) ) ); |