diff --git a/src/useLocalStorage/useLocalStorage.ts b/src/useLocalStorage/useLocalStorage.ts index 2f9d1314..a6b66602 100644 --- a/src/useLocalStorage/useLocalStorage.ts +++ b/src/useLocalStorage/useLocalStorage.ts @@ -20,7 +20,7 @@ function useLocalStorage(key: string, initialValue: T): [T, SetValue] { // 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 }