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".
This commit is contained in:
schroda
2024-12-31 13:59:34 +01:00
parent 83e8a5fec1
commit 7f04f1c860

View File

@@ -166,6 +166,7 @@ const BaseReader = ({
chapterSourceOrder <= chapters.length;
const isLoading =
currentChapter === undefined ||
!areSettingsSet ||
mangaResponse.loading ||
chaptersResponse.loading ||