From ce39cfe7e0dc1fe1eab9af6efa087788a47c6429 Mon Sep 17 00:00:00 2001 From: Julien Date: Thu, 22 Sep 2022 17:26:19 +0200 Subject: [PATCH] content: fix typo (#198 from @alexisoney) --- src/useLocalStorage/useLocalStorage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }