From 7f04f1c8602935bc8b824365f07d20b16c35e1f8 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Tue, 31 Dec 2024 13:59:34 +0100 Subject: [PATCH] Consider unset reader chapter as still loading In case the "currentChapter" is undefined, it means that the state has not been set yet. In case the "currentChapter" does not exist, it would be set to "null". --- src/modules/reader/screens/Reader.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/reader/screens/Reader.tsx b/src/modules/reader/screens/Reader.tsx index e9d5e82e..e74514f5 100644 --- a/src/modules/reader/screens/Reader.tsx +++ b/src/modules/reader/screens/Reader.tsx @@ -166,6 +166,7 @@ const BaseReader = ({ chapterSourceOrder <= chapters.length; const isLoading = + currentChapter === undefined || !areSettingsSet || mangaResponse.loading || chaptersResponse.loading ||