Skip to content

Commit

Permalink
Fix regression on global search 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed Jan 8, 2025
1 parent 1fa52e9 commit 0f3572d
Showing 1 changed file with 1 addition and 1 deletion.
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 0f3572d

Please sign in to comment.