convert prefix to lowercase in actor autocomplete query (#2431)
parent
928a626c2e
commit
cb9ed35cf6
|
@ -24,6 +24,8 @@ export function useActorAutocompleteQuery(prefix: string) {
|
|||
const {data: follows, isFetching} = useMyFollowsQuery()
|
||||
const moderationOpts = useModerationOpts()
|
||||
|
||||
prefix = prefix.toLowerCase()
|
||||
|
||||
return useQuery<AppBskyActorDefs.ProfileViewBasic[]>({
|
||||
staleTime: STALE.MINUTES.ONE,
|
||||
queryKey: RQKEY(prefix || ''),
|
||||
|
|
Loading…
Reference in New Issue