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 = () => {
</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>
......
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