mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-06-28 23:40:21 +08:00
fix: log search query when no icons are found
This commit is contained in:
parent
b0b2ce0d85
commit
8465fb4929
@ -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,
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user