diff --git a/lib/useUserData.ts b/lib/useUserData.ts index ec3b643..42222cc 100644 --- a/lib/useUserData.ts +++ b/lib/useUserData.ts @@ -2,6 +2,10 @@ import { fetchData } from '@/utils/utils'; import { QueriedUserData } from 'bookem-shared/src/types/database'; import { useEffect, useState } from 'react'; +/** + * Custom hook to fetch user data and return + * @returns + */ export const useUserData = () => { const [userData, setUserData] = useState(null);