fix: inform user then search term provided no results
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 38s

This commit is contained in:
Stixx 2024-12-02 15:34:17 +01:00
parent 8ece8283e1
commit 24463a53c5

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)