Skip to content

Commit

Permalink
fix: init value
Browse files Browse the repository at this point in the history
  • Loading branch information
kahosan committed Aug 14, 2024
1 parent 817898b commit ae39f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/use-bangumi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const bangumiFilterAtom = atomWithStorage<DataKind>(
'both',
{
...localStorage,
getItem: key => (localStorage.getItem(key) ?? '') as DataKind,
getItem: key => (localStorage.getItem(key) ?? 'both') as DataKind,
setItem: (key, value) => localStorage.setItem(key, value),
},
{ getOnInit: true }
Expand Down

0 comments on commit ae39f12

Please sign in to comment.