Update useLocalStorage.tsx

pull/5667/head
moonman 2 weeks ago committed by GitHub
parent 6bdb02d354
commit 007d4fa6dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      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
}

Loading…
Cancel
Save