Skip to content

Commit

Permalink
convert prefix to lowercase in actor autocomplete query (#2431)
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok authored Jan 8, 2024
1 parent 928a626 commit cb9ed35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/state/queries/actor-autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 || ''),
Expand Down

0 comments on commit cb9ed35

Please sign in to comment.