mirror of
				https://github.com/walkxcode/dashboard-icons.git
				synced 2025-10-31 16:57:58 +01:00 
			
		
		
		
	fix: log search query when no icons are found
This commit is contained in:
		| @@ -215,7 +215,10 @@ export function IconSearch({ icons }: IconSearchProps) { | ||||
| 	}, []) | ||||
|  | ||||
| 	useEffect(() => { | ||||
| 		if (filteredIcons.length === 0) { | ||||
| 		if (filteredIcons.length === 0 && searchQuery) { | ||||
| 			console.log("no icons found", { | ||||
| 				query: searchQuery, | ||||
| 			}) | ||||
| 			posthog.capture("no icons found", { | ||||
| 				query: searchQuery, | ||||
| 			}) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user