convert query to lowercase before performing search (#2770)

zio/stable
Hailey 2024-02-06 17:57:16 -08:00 committed by GitHub
parent a070d40990
commit f393dda528
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ export function useActorAutocompleteFn() {
return React.useCallback( return React.useCallback(
async ({query, limit = 8}: {query: string; limit?: number}) => { async ({query, limit = 8}: {query: string; limit?: number}) => {
query = query.toLowerCase()
let res let res
if (query) { if (query) {
try { try {