mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-22 07:00: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(
|
const members = useMemo(
|
||||||
() =>
|
() =>
|
||||||
query
|
query
|
||||||
? data?.filter((x) => x.user?.username.includes(query))
|
? data?.filter((x) =>
|
||||||
|
x.user?.username
|
||||||
|
.toLowerCase()
|
||||||
|
.includes(query.toLowerCase()),
|
||||||
|
)
|
||||||
: data,
|
: data,
|
||||||
[data, query],
|
[data, query],
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue