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:
@@ -166,6 +166,7 @@ const BaseReader = ({
|
|||||||
chapterSourceOrder <= chapters.length;
|
chapterSourceOrder <= chapters.length;
|
||||||
|
|
||||||
const isLoading =
|
const isLoading =
|
||||||
|
currentChapter === undefined ||
|
||||||
!areSettingsSet ||
|
!areSettingsSet ||
|
||||||
mangaResponse.loading ||
|
mangaResponse.loading ||
|
||||||
chaptersResponse.loading ||
|
chaptersResponse.loading ||
|
||||||
|
|||||||
Reference in New Issue
Block a user