File tree Expand file tree Collapse file tree 3 files changed +20
-10
lines changed
apps/web/src/components/NavBar/SearchBar Expand file tree Collapse file tree 3 files changed +20
-10
lines changed Original file line number Diff line number Diff line change 11IPFS hash of the deployment:
2- - CIDv0: `QmNqPGKMdePE3CHXYcsFP4iUhi4CqDxj5UPy9WS24aiPri `
3- - CIDv1: `bafybeiahlrqvc2774o2m52oaqpupr2wb6ycrv2p4y65lf27etmvjsbegom `
2+ - CIDv0: `QmNseCQM3gjdY5cnH16fzEDwnaik9pnuLDaAXAWbET2gef `
3+ - CIDv1: `bafybeiah6bwq7dezzdlgk22o5nbiel2t73ev5tpo75mqebz5f4p5dw5v5q `
44
55The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org).
66
@@ -10,15 +10,15 @@ You can also access the Uniswap Interface from an IPFS gateway.
1010Your Uniswap settings are never remembered across different URLs.
1111
1212IPFS gateways:
13- - https://bafybeiahlrqvc2774o2m52oaqpupr2wb6ycrv2p4y65lf27etmvjsbegom .ipfs.dweb.link/
14- - https://bafybeiahlrqvc2774o2m52oaqpupr2wb6ycrv2p4y65lf27etmvjsbegom .ipfs.cf-ipfs.com/
15- - [ipfs://QmNqPGKMdePE3CHXYcsFP4iUhi4CqDxj5UPy9WS24aiPri /](ipfs://QmNqPGKMdePE3CHXYcsFP4iUhi4CqDxj5UPy9WS24aiPri /)
13+ - https://bafybeiah6bwq7dezzdlgk22o5nbiel2t73ev5tpo75mqebz5f4p5dw5v5q .ipfs.dweb.link/
14+ - https://bafybeiah6bwq7dezzdlgk22o5nbiel2t73ev5tpo75mqebz5f4p5dw5v5q .ipfs.cf-ipfs.com/
15+ - [ipfs://QmNseCQM3gjdY5cnH16fzEDwnaik9pnuLDaAXAWbET2gef /](ipfs://QmNseCQM3gjdY5cnH16fzEDwnaik9pnuLDaAXAWbET2gef /)
1616
17- ### 5.45.2 (2024-09-05)
17+ ### 5.45.3 (2024-09-05)
1818
1919
2020### Bug Fixes
2121
22- * **web:** stop crash on search - prod (#11568) 12d0927
22+ * **web:** filter sugessstions if chain is undefined (#11572) f71048d
2323
2424
Original file line number Diff line number Diff line change 1- web/5.45.2
1+ web/5.45.3
Original file line number Diff line number Diff line change @@ -26,7 +26,11 @@ import { useLocation } from 'react-router-dom'
2626import { ThemedText } from 'theme/components'
2727import { Flex } from 'ui/src'
2828import { UNIVERSE_CHAIN_INFO } from 'uniswap/src/constants/chains'
29- import { HistoryDuration , SafetyLevel } from 'uniswap/src/data/graphql/uniswap-data-api/__generated__/types-and-hooks'
29+ import {
30+ HistoryDuration ,
31+ SafetyLevel ,
32+ Token ,
33+ } from 'uniswap/src/data/graphql/uniswap-data-api/__generated__/types-and-hooks'
3034import { InterfaceSearchResultSelectionProperties } from 'uniswap/src/features/telemetry/types'
3135import { Trans } from 'uniswap/src/i18n'
3236import { InterfaceChainId } from 'uniswap/src/types/chains'
@@ -171,7 +175,13 @@ function SearchBarDropdownContents({
171175} : SearchBarDropdownProps ) : JSX . Element {
172176 const [ hoveredIndex , setHoveredIndex ] = useState < number | undefined > ( 0 )
173177 const { data : searchHistory } = useRecentlySearchedAssets ( )
174- const shortenedHistory = useMemo ( ( ) => searchHistory ?? [ ...Array < GqlSearchToken > ( 2 ) ] , [ searchHistory ] )
178+ const shortenedHistory = useMemo (
179+ ( ) =>
180+ searchHistory ?. filter ( ( item ) => 'isVerified' in ( item as GenieCollection ) || ( item as Token ) . chain ) ?? [
181+ ...Array < GqlSearchToken > ( 2 ) ,
182+ ] ,
183+ [ searchHistory ] ,
184+ )
175185 const { pathname } = useLocation ( )
176186 const isNFTPage = useIsNftPage ( )
177187 const isTokenPage = pathname . includes ( '/explore' )
You can’t perform that action at this time.
0 commit comments