fix: log search query when no icons are found

This commit is contained in:
Thomas Camlong 2025-04-22 18:16:02 +02:00
parent b0b2ce0d85
commit 8465fb4929
No known key found for this signature in database
GPG Key ID: A678F374F428457B

View File

@ -215,7 +215,10 @@ export function IconSearch({ icons }: IconSearchProps) {
}, []) }, [])
useEffect(() => { useEffect(() => {
if (filteredIcons.length === 0) { if (filteredIcons.length === 0 && searchQuery) {
console.log("no icons found", {
query: searchQuery,
})
posthog.capture("no icons found", { posthog.capture("no icons found", {
query: searchQuery, query: searchQuery,
}) })