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>
|
</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>
|
||||||
|
Loading…
Reference in New Issue
Block a user