Merge pull request 'fix: inform user then search term provided no results' (#267) from issue-248 into staging
Some checks failed
Release to Staging / build_and_release (push) Has been cancelled

Reviewed-on: #267
Reviewed-by: enes <enes@noreply.git.nostrdev.com>
This commit is contained in:
b 2024-12-06 10:51:08 +00:00
commit e05dcf4a07

View File

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