diff --git a/src/useLocalStorage.ts b/src/useLocalStorage.ts index 7d05e04c04..78a9671cd5 100644 --- a/src/useLocalStorage.ts +++ b/src/useLocalStorage.ts @@ -19,7 +19,7 @@ const useLocalStorage = (key: string, initialValue?: T, raw?: boolean): [T, ( } catch { // If user is in private mode or has storage restriction // localStorage can throw. JSON.parse and JSON.stringify - // cat throw, too. + // can throw, too. return initialValue; } });