Commit 77ee69ad authored by Charles Bachmeier's avatar Charles Bachmeier Committed by GitHub

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: default avatarCharlie <charlie@uniswap.org>
parent 4b82838f
...@@ -367,14 +367,14 @@ export const SearchBar = () => { ...@@ -367,14 +367,14 @@ export const SearchBar = () => {
</NavIcon> </NavIcon>
</Box> </Box>
{isOpen && {isOpen &&
(searchValue.length > 0 && (tokensAreLoading || collectionsAreLoading) ? ( (debouncedSearchValue.length > 0 && (tokensAreLoading || collectionsAreLoading) ? (
<SkeletonRow /> <SkeletonRow />
) : ( ) : (
<SearchBarDropdown <SearchBarDropdown
toggleOpen={toggleOpen} toggleOpen={toggleOpen}
tokens={reducedTokens} tokens={reducedTokens}
collections={reducedCollections} collections={reducedCollections}
hasInput={searchValue.length > 0} hasInput={debouncedSearchValue.length > 0}
/> />
))} ))}
</Box> </Box>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment