invite-modal-hotfix

This commit is contained in:
Untone 2024-02-04 09:38:45 +03:00
parent 9bff49e711
commit 21027f3167

View File

@ -79,7 +79,7 @@ export const InviteMembers = (props: Props) => {
const handleInputChange = async (value: string) => { const handleInputChange = async (value: string) => {
if (value.length > 1) { if (value.length > 1) {
const match = authorsToInvite().filter((author) => const match = authorsToInvite()?.filter((author) =>
author.name.toLowerCase().includes(value.toLowerCase()), author.name.toLowerCase().includes(value.toLowerCase()),
) )
setSearchResultAuthors(match) setSearchResultAuthors(match)