closes #58
This commit is contained in:
@@ -158,13 +158,13 @@ export default function Reader() {
|
|||||||
formData.append('read', 'true');
|
formData.append('read', 'true');
|
||||||
client.patch(`/api/v1/manga/${manga.id}/chapter/${chapter.index}`, formData);
|
client.patch(`/api/v1/manga/${manga.id}/chapter/${chapter.index}`, formData);
|
||||||
|
|
||||||
history.push(`/manga/${manga.id}/chapter/${chapter.index + 1}`);
|
history.replace(`/manga/${manga.id}/chapter/${chapter.index + 1}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const prevChapter = () => {
|
const prevChapter = () => {
|
||||||
if (chapter.index > 1) {
|
if (chapter.index > 1) {
|
||||||
history.push(`/manga/${manga.id}/chapter/${chapter.index - 1}`);
|
history.replace(`/manga/${manga.id}/chapter/${chapter.index - 1}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user