fix: max depth error (#5258)

fixing max depth error
This commit is contained in:
aballerr 2022-11-16 18:21:50 -05:00 committed by GitHub
parent e1d489a6bc
commit 1788c9f3c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -204,10 +204,10 @@ export const SearchBarDropdown = ({
(isNFTPage && (hasVerifiedCollection || !hasVerifiedToken)) || (isNFTPage && (hasVerifiedCollection || !hasVerifiedToken)) ||
(!isNFTPage && !hasVerifiedToken && hasVerifiedCollection) (!isNFTPage && !hasVerifiedToken && hasVerifiedCollection)
const trace = useTrace({ section: SectionName.NAVBAR_SEARCH }) const trace = JSON.stringify(useTrace({ section: SectionName.NAVBAR_SEARCH }))
useEffect(() => { useEffect(() => {
const eventProperties = { total_suggestions: totalSuggestions, query_text: queryText, ...trace } const eventProperties = { total_suggestions: totalSuggestions, query_text: queryText, ...JSON.parse(trace) }
if (!isLoading) { if (!isLoading) {
const tokenSearchResults = const tokenSearchResults =
tokens.length > 0 ? ( tokens.length > 0 ? (