fix: download status

This commit is contained in:
Fredrik Burmester
2025-10-03 11:02:58 +02:00
parent d764e5f9d2
commit 4517fe354b
10 changed files with 47 additions and 54 deletions

View File

@@ -72,7 +72,7 @@ export const HomeIndex = () => {
const scrollViewRef = useRef<ScrollView>(null);
const { getDownloadedItems, cleanCacheDirectory } = useDownload();
const { downloadedItems, cleanCacheDirectory } = useDownload();
const prevIsConnected = useRef<boolean | null>(false);
const {
isConnected,
@@ -92,8 +92,8 @@ export const HomeIndex = () => {
const hasDownloads = useMemo(() => {
if (Platform.isTV) return false;
return getDownloadedItems().length > 0;
}, [getDownloadedItems]);
return downloadedItems.length > 0;
}, [downloadedItems]);
useEffect(() => {
if (Platform.isTV) {