Skip to content

Commit

Permalink
Merge pull request #1678 from oasisprotocol/csillag/fix-404-regression
Browse files Browse the repository at this point in the history
Fix regression on global search 404 page
  • Loading branch information
csillag authored Jan 9, 2025
2 parents 1fa52e9 + b617588 commit fa76f74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changelog/1678.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix regression on global search 404 page
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function useRedirectIfSingleResult(
results: SearchResults,
) {
const navigate = useNavigate()
const { data: validatorsData } = useGetConsensusValidatorsAddressNameMap(results[0].network)
const { data: validatorsData } = useGetConsensusValidatorsAddressNameMap(results[0]?.network)
const { searchTerm, accountNameFragment, evmAccount, consensusAccount } = searchParams

let shouldRedirect = results.length === 1
Expand Down

0 comments on commit fa76f74

Please sign in to comment.