fix: search flash of no tokens found when typing (#4531)

* add null check to collection floor price

* don't show 0 if floor is null

* use debouncedSearchValue

Co-authored-by: Charlie <charlie@uniswap.org>
This commit is contained in:
Charles Bachmeier 2022-08-29 10:47:42 -07:00 committed by GitHub
parent 4b82838f80
commit 77ee69ad52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -367,14 +367,14 @@ export const SearchBar = () => {
</NavIcon>
</Box>
{isOpen &&
(searchValue.length > 0 && (tokensAreLoading || collectionsAreLoading) ? (
(debouncedSearchValue.length > 0 && (tokensAreLoading || collectionsAreLoading) ? (
<SkeletonRow />
) : (
<SearchBarDropdown
toggleOpen={toggleOpen}
tokens={reducedTokens}
collections={reducedCollections}
hasInput={searchValue.length > 0}
hasInput={debouncedSearchValue.length > 0}
/>
))}
</Box>