Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mbifulco committed Jan 4, 2025
1 parent 52223c6 commit 5ce7f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useLocalStorage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function useLocalStorage<T>(key: string, initialValue: T) {
/* eslint-disable @typescript-eslint/no-unsafe-call */
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const nextState =
typeof v === 'function' ? v(JSON.parse(store || '{}')) : v;
typeof v === 'function' ? v(JSON.parse(store ?? '{}')) : v;
/* eslint-enable @typescript-eslint/no-unsafe-call */

if (nextState === undefined || nextState === null) {
Expand Down

0 comments on commit 5ce7f55

Please sign in to comment.