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:
parent
4b82838f80
commit
77ee69ad52
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user