From d9c2dfcc45b88c73e03bcc804112058c177ac5b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=93=9D=E4=BA=91Reyes?= Date: Fri, 23 Jun 2023 02:14:35 +0800 Subject: [PATCH] Update Updates.tsx --- src/screens/Updates.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/screens/Updates.tsx b/src/screens/Updates.tsx index 55daaa2d3b..fcbb58534a 100644 --- a/src/screens/Updates.tsx +++ b/src/screens/Updates.tsx @@ -140,10 +140,6 @@ const Updates: React.FC = () => { setAction(null); }, [t]); - if (!isLoading && updateEntries.length === 0) { - return ; - } - const downloadForChapter = (chapter: IChapter) => { const { index, mangaId } = chapter; return queue.find((q) => index === q.chapterIndex && mangaId === q.mangaId); @@ -161,6 +157,10 @@ const Updates: React.FC = () => { setPages(loadedPages + 1); }, [hasNextPage, loadedPages]); + if (!isLoading && updateEntries.length === 0) { + return ; + } + return (