fix: inform user then search term provided no results #267

Open
m wants to merge 1 commits from issue-248 into staging

View File

@ -199,8 +199,11 @@ export const CreatePage = () => {
return uniqueEvents return uniqueEvents
}, []) }, [])
console.log('fineFilteredEvents', fineFilteredEvents) console.info('fineFilteredEvents', fineFilteredEvents)
setFoundUsers(fineFilteredEvents) setFoundUsers(fineFilteredEvents)
if (!fineFilteredEvents.length)
toast.info('No user found with the provided search term')
}) })
.catch((error) => { .catch((error) => {
console.error(error) console.error(error)