Skip to content

Commit b112a63

Browse files
joshsj89onmotion
andauthored
Update src/index.tsx
Co-authored-by: Alexandr Kozhevnikov <[email protected]>
1 parent 95edab4 commit b112a63

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/index.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,7 @@ export const AutocompleteDropdown = memo<
288288
return
289289
}
290290

291-
let findWhat: string
292-
293-
if (caseSensitive) {
294-
findWhat = searchText
295-
} else {
296-
findWhat = searchText.toLowerCase()
297-
}
291+
let findWhat = caseSensitive ? searchText : searchText.toLowerCase()
298292

299293
if (ignoreAccents) {
300294
findWhat = diacriticless(findWhat)

0 commit comments

Comments
 (0)