From 3c21fee6c2ebd086a71e553a96ba13b57f7e36f9 Mon Sep 17 00:00:00 2001 From: DS Boyce <260543580+ds-boyce@users.noreply.github.com> Date: Tue, 7 Apr 2026 11:55:03 -0700 Subject: [PATCH] Don't call getProfiles if there are no actors (#10196) --- src/state/queries/profile.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/state/queries/profile.ts b/src/state/queries/profile.ts index b792fecb46..7db15d0bc3 100644 --- a/src/state/queries/profile.ts +++ b/src/state/queries/profile.ts @@ -99,6 +99,7 @@ export function useProfilesQuery({ }) { const agent = useAgent() return useQuery({ + enabled: handles.length > 0, staleTime: STALE.MINUTES.FIVE, queryKey: profilesQueryKey(handles), queryFn: async () => {