From 24463a53c50f00313e3502438ae5f47254635253 Mon Sep 17 00:00:00 2001 From: Stixx Date: Mon, 2 Dec 2024 15:34:17 +0100 Subject: [PATCH] fix: inform user then search term provided no results --- src/pages/create/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/create/index.tsx b/src/pages/create/index.tsx index a65a559..588957b 100644 --- a/src/pages/create/index.tsx +++ b/src/pages/create/index.tsx @@ -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) -- 2.34.1