From 1788c9f3c0ac76a0b510989cba3809e313f74a68 Mon Sep 17 00:00:00 2001 From: aballerr Date: Wed, 16 Nov 2022 18:21:50 -0500 Subject: [PATCH] fix: max depth error (#5258) fixing max depth error --- src/components/NavBar/SearchBarDropdown.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/NavBar/SearchBarDropdown.tsx b/src/components/NavBar/SearchBarDropdown.tsx index 8ba780b179..663e7dd496 100644 --- a/src/components/NavBar/SearchBarDropdown.tsx +++ b/src/components/NavBar/SearchBarDropdown.tsx @@ -204,10 +204,10 @@ export const SearchBarDropdown = ({ (isNFTPage && (hasVerifiedCollection || !hasVerifiedToken)) || (!isNFTPage && !hasVerifiedToken && hasVerifiedCollection) - const trace = useTrace({ section: SectionName.NAVBAR_SEARCH }) + const trace = JSON.stringify(useTrace({ section: SectionName.NAVBAR_SEARCH })) useEffect(() => { - const eventProperties = { total_suggestions: totalSuggestions, query_text: queryText, ...trace } + const eventProperties = { total_suggestions: totalSuggestions, query_text: queryText, ...JSON.parse(trace) } if (!isLoading) { const tokenSearchResults = tokens.length > 0 ? (