diff --git a/app/(auth)/(tabs)/(home)/index.tsx b/app/(auth)/(tabs)/(home)/index.tsx index e9f5417d..c9d3bcb7 100644 --- a/app/(auth)/(tabs)/(home)/index.tsx +++ b/app/(auth)/(tabs)/(home)/index.tsx @@ -53,7 +53,6 @@ type MediaListSection = { type Section = ScrollingCollectionListSection | MediaListSection; export default function index() { - const queryClient = useQueryClient(); const router = useRouter(); const api = useAtomValue(apiAtom); @@ -68,6 +67,8 @@ export default function index() { const { downloadedFiles } = useDownload(); const navigation = useNavigation(); + const insets = useSafeAreaInsets(); + useEffect(() => { const hasDownloads = downloadedFiles && downloadedFiles.length > 0; navigation.setOptions({ @@ -346,8 +347,6 @@ export default function index() { ); } - const insets = useSafeAreaInsets(); - if (e1 || e2) return (