diff --git a/src/components/navbar/ReaderNavBar.tsx b/src/components/navbar/ReaderNavBar.tsx index 4dcf9408..d7b19266 100644 --- a/src/components/navbar/ReaderNavBar.tsx +++ b/src/components/navbar/ReaderNavBar.tsx @@ -258,11 +258,7 @@ export default function ReaderNavBar(props: IProps) { Currently on page - + = 1 ? chapter.index : ''} @@ -324,19 +316,16 @@ export default function ReaderNavBar(props: IProps) { .map((ignoreValue, index) => ( // eslint-disable-next-line max-len // eslint-disable-next-line react/no-array-index-key - {`Chapter ${index + 1}`} + {`Chapter ${ + index + 1 + }`} ))} = chapter.chapterCount - } + disabled={chapter.index < 1 || chapter.index >= chapter.chapterCount} onClick={() => { history.replace({ pathname: `/manga/${manga.id}/chapter/${chapter.index + 1}`,