From 007d4fa6dc30058ed42294fdad782d07b7d789c0 Mon Sep 17 00:00:00 2001 From: moonman <155266991+moooonman@users.noreply.github.com> Date: Mon, 20 Jan 2025 12:14:26 +0100 Subject: [PATCH] Update useLocalStorage.tsx --- apps/doc-gen/src/app/hooks/useLocalStorage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/doc-gen/src/app/hooks/useLocalStorage.tsx b/apps/doc-gen/src/app/hooks/useLocalStorage.tsx index 955658bac5..eb7fad8541 100644 --- a/apps/doc-gen/src/app/hooks/useLocalStorage.tsx +++ b/apps/doc-gen/src/app/hooks/useLocalStorage.tsx @@ -10,7 +10,7 @@ export function useLocalStorage(key: string, initialValue: any) { // Parse stored json or if none return initialValue return item ? JSON.parse(item) : initialValue } catch (error) { - // If error also return initialValue + // If an error also return initialValue console.log(error) return initialValue }