From 9232daba7a4e29d82bafd3e088f1c11bd115840f Mon Sep 17 00:00:00 2001 From: Logan Rosen Date: Sun, 11 Jun 2023 23:12:50 -0400 Subject: [PATCH] Move useWebMediaQueries() above return (#872) --- src/view/screens/Search.web.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view/screens/Search.web.tsx b/src/view/screens/Search.web.tsx index 62f3fb90..85e8c212 100644 --- a/src/view/screens/Search.web.tsx +++ b/src/view/screens/Search.web.tsx @@ -44,12 +44,12 @@ export const SearchScreen = withAuthRequired( } }, [foafs, suggestedActors, searchUIModel, params.q]) + const {isDesktop} = useWebMediaQueries() + if (searchUIModel) { return } - const {isDesktop} = useWebMediaQueries() - if (!isDesktop) { return }