this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

header: fix loading issue in the logged in header

Clément 154056ab 5e1dac20

+5 -4
+5 -4
app/src/contexts/profile.tsx
··· 35 35 export function ProfileProvider(props: { children: JSX.Element }) { 36 36 const auth = useAuth(); 37 37 38 - const did = auth.did(); 39 - 40 38 const query = useQuery(() => ({ 41 - queryKey: ['currentUserProfile', did], 42 - queryFn: () => (did ? fn(did) : null), 39 + queryKey: ['currentUserProfile', auth.did()], 40 + queryFn: () => { 41 + const did = auth.did(); 42 + return did ? fn(did) : null; 43 + }, 43 44 })); 44 45 45 46 const profile = () => query.data ?? null;