Move useWebMediaQueries() above return (#872)

zio/stable
Logan Rosen 2023-06-11 23:12:50 -04:00 committed by GitHub
parent 8d03ab9399
commit 9232daba7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -44,12 +44,12 @@ export const SearchScreen = withAuthRequired(
}
}, [foafs, suggestedActors, searchUIModel, params.q])
const {isDesktop} = useWebMediaQueries()
if (searchUIModel) {
return <SearchResults model={searchUIModel} />
}
const {isDesktop} = useWebMediaQueries()
if (!isDesktop) {
return <Mobile.SearchScreen navigation={navigation} route={route} />
}