diff --git a/routes/story.tsx b/routes/story.tsx index 31eb649..db25be4 100644 --- a/routes/story.tsx +++ b/routes/story.tsx @@ -15,6 +15,9 @@ export default async (params: URLSearchParams) => { // chapters if (params.get("chapter")) { await story.chapters[Number(params.get("chapter") as string)].init(); + + console.log(story.chapters.length); + console.log(Number(params.get("chapter"))); return (
@@ -48,8 +51,8 @@ export default async (params: URLSearchParams) => { )}  |  - {story.chapters.length < - Number(params.get("chapter")) ? undefined : ( + {story.chapters.length === + Number(params.get("chapter")) + 1 ? undefined : ( { const tmpParams = params;