From 306ba18433c1c1d09796104d0ee28f2d79613f49 Mon Sep 17 00:00:00 2001 From: Wind-Explorer Date: Tue, 30 Jul 2024 16:40:44 +0800 Subject: [PATCH] Added button availability check --- client/src/components/EcoconnectSearch.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/components/EcoconnectSearch.tsx b/client/src/components/EcoconnectSearch.tsx index 3e6a611..3f831f6 100644 --- a/client/src/components/EcoconnectSearch.tsx +++ b/client/src/components/EcoconnectSearch.tsx @@ -137,6 +137,7 @@ export default function EcoconnectSearch() { variant="flat" onPress={executeSearch} isLoading={isQueryLoading} + isDisabled={searchQuery.length <= 0} className="-mr-2" >