aboutsummaryrefslogtreecommitdiff
path: root/src/stores
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores')
-rw-r--r--src/stores/identity.ts2
-rw-r--r--src/stores/lastPruneTimes.ts2
-rw-r--r--src/stores/settings.ts2
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)
)
);