From cb9ed35cf6f66c8725061109a41eacf60e10a90a Mon Sep 17 00:00:00 2001 From: Hailey <153161762+haileyok@users.noreply.github.com> Date: Mon, 8 Jan 2024 13:56:47 -0800 Subject: [PATCH] convert prefix to lowercase in actor autocomplete query (#2431) --- src/state/queries/actor-autocomplete.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/state/queries/actor-autocomplete.ts b/src/state/queries/actor-autocomplete.ts index 785e2976..ba9f9700 100644 --- a/src/state/queries/actor-autocomplete.ts +++ b/src/state/queries/actor-autocomplete.ts @@ -24,6 +24,8 @@ export function useActorAutocompleteQuery(prefix: string) { const {data: follows, isFetching} = useMyFollowsQuery() const moderationOpts = useModerationOpts() + prefix = prefix.toLowerCase() + return useQuery({ staleTime: STALE.MINUTES.ONE, queryKey: RQKEY(prefix || ''),