diff --git a/public/locales/en.json b/public/locales/en.json index 8a5a32f9..437e1db7 100644 --- a/public/locales/en.json +++ b/public/locales/en.json @@ -734,6 +734,7 @@ "error": { "label": { "next_chapter_does_not_exist": "There is no next chapter to open", + "no_pages_found": "No pages found", "prev_chapter_does_not_exist": "There is no previous chapter to open" } }, diff --git a/src/screens/Reader.tsx b/src/screens/Reader.tsx index 96816246..18f41ad4 100644 --- a/src/screens/Reader.tsx +++ b/src/screens/Reader.tsx @@ -503,6 +503,10 @@ export function Reader() { ); } + if (!chapter.pageCount) { + return ; + } + const pages = range(chapter.pageCount).map((index) => ({ index, src: requestManager.getChapterPageUrl(mangaId, chapterIndex, index),