Skip to content

Commit

Permalink
Fix potential bad destructure (undefined)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Dec 18, 2024
1 parent 8938389 commit 28e3faa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/view/shell/desktop/RightNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export function DesktopRightNav({routeName}: {routeName: string}) {
const kawaii = useKawaiiMode()
const gutters = useGutters(['base', 0, 'base', 'wide'])
const isSearchScreen = routeName === 'Search'
const {q: searchQuery} = useWebQueryParams()
const webqueryParams = useWebQueryParams()
const searchQuery = webqueryParams?.q
const showTrending = !isSearchScreen || (isSearchScreen && !!searchQuery)

const {isTablet} = useWebMediaQueries()
Expand Down

0 comments on commit 28e3faa

Please sign in to comment.