mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-25 08:30:58 -05:00
fix: make member search case insensitive (#506)
This commit is contained in:
parent
5a46c50b81
commit
dd39e13623
1 changed files with 5 additions and 1 deletions
|
@ -106,7 +106,11 @@ export const Members = ({ server }: Props) => {
|
|||
const members = useMemo(
|
||||
() =>
|
||||
query
|
||||
? data?.filter((x) => x.user?.username.includes(query))
|
||||
? data?.filter((x) =>
|
||||
x.user?.username
|
||||
.toLowerCase()
|
||||
.includes(query.toLowerCase()),
|
||||
)
|
||||
: data,
|
||||
[data, query],
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue