Always show continue read/resume button if unread chapter available

This commit is contained in:
schroda
2024-08-14 14:26:25 +02:00
parent af44421838
commit d14255494d
4 changed files with 15 additions and 26 deletions

View File

@@ -15,20 +15,18 @@ import { Link } from 'react-router-dom';
export const ContinueReadingButton = ({
showContinueReadingButton,
isLatestChapterRead,
nextChapterIndexToRead,
mangaLinkTo,
}: {
showContinueReadingButton: boolean;
isLatestChapterRead: boolean;
nextChapterIndexToRead: number;
nextChapterIndexToRead?: number;
mangaLinkTo: string;
}) => {
const { t } = useTranslation();
const isFirstChapter = nextChapterIndexToRead === 1;
if (!showContinueReadingButton || isLatestChapterRead) {
if (!showContinueReadingButton || nextChapterIndexToRead === undefined) {
return null;
}