Skip to content

Commit

Permalink
content: fix typo (juliencrn#198 from @alexisoney)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliencrn committed Sep 22, 2022
1 parent f9ee364 commit ce39cfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useLocalStorage/useLocalStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function useLocalStorage<T>(key: string, initialValue: T): [T, SetValue<T>] {
// Get from local storage then
// parse stored json or return initialValue
const readValue = useCallback((): T => {
// Prevent build error "window is undefined" but keep keep working
// Prevent build error "window is undefined" but keeps working
if (typeof window === 'undefined') {
return initialValue
}
Expand Down

0 comments on commit ce39cfe

Please sign in to comment.