File tree 3 files changed +20
-10
lines changed
apps/web/src/components/NavBar/SearchBar
3 files changed +20
-10
lines changed Original file line number Diff line number Diff line change 1
1
IPFS hash of the deployment:
2
- - CIDv0: `QmNqPGKMdePE3CHXYcsFP4iUhi4CqDxj5UPy9WS24aiPri `
3
- - CIDv1: `bafybeiahlrqvc2774o2m52oaqpupr2wb6ycrv2p4y65lf27etmvjsbegom `
2
+ - CIDv0: `QmNseCQM3gjdY5cnH16fzEDwnaik9pnuLDaAXAWbET2gef `
3
+ - CIDv1: `bafybeiah6bwq7dezzdlgk22o5nbiel2t73ev5tpo75mqebz5f4p5dw5v5q `
4
4
5
5
The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org).
6
6
@@ -10,15 +10,15 @@ You can also access the Uniswap Interface from an IPFS gateway.
10
10
Your Uniswap settings are never remembered across different URLs.
11
11
12
12
IPFS 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 /)
16
16
17
- ### 5.45.2 (2024-09-05)
17
+ ### 5.45.3 (2024-09-05)
18
18
19
19
20
20
### Bug Fixes
21
21
22
- * **web:** stop crash on search - prod (#11568) 12d0927
22
+ * **web:** filter sugessstions if chain is undefined (#11572) f71048d
23
23
24
24
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'
26
26
import { ThemedText } from 'theme/components'
27
27
import { Flex } from 'ui/src'
28
28
import { 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'
30
34
import { InterfaceSearchResultSelectionProperties } from 'uniswap/src/features/telemetry/types'
31
35
import { Trans } from 'uniswap/src/i18n'
32
36
import { InterfaceChainId } from 'uniswap/src/types/chains'
@@ -171,7 +175,13 @@ function SearchBarDropdownContents({
171
175
} : SearchBarDropdownProps ) : JSX . Element {
172
176
const [ hoveredIndex , setHoveredIndex ] = useState < number | undefined > ( 0 )
173
177
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
+ )
175
185
const { pathname } = useLocation ( )
176
186
const isNFTPage = useIsNftPage ( )
177
187
const isTokenPage = pathname . includes ( '/explore' )
You can’t perform that action at this time.
0 commit comments