aboutsummaryrefslogtreecommitdiff
path: root/src/stores/identity.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-06-11 23:52:43 -0700
committerFuwn <[email protected]>2025-06-11 23:52:43 -0700
commit1bc4488a06db88597327ecc855c5b70a7ddc55ce (patch)
treeded544d953d4b62fc4365c2758d75f02efe7d625 /src/stores/identity.ts
parentfix: Migrate localStorage.removeItem to localforage for anime and manga stores (diff)
downloaddue.moe-1bc4488a06db88597327ecc855c5b70a7ddc55ce.tar.xz
due.moe-1bc4488a06db88597327ecc855c5b70a7ddc55ce.zip
style: Reformat using latest formatting
Diffstat (limited to 'src/stores/identity.ts')
-rw-r--r--src/stores/identity.ts2
1 files changed, 1 insertions, 1 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)
)
);