Skip to content

Commit

Permalink
closes #58
Browse files Browse the repository at this point in the history
  • Loading branch information
AriaMoradi committed Oct 31, 2021
1 parent c15ee7a commit b6cf4a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/screens/Reader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@ export default function Reader() {
formData.append('read', 'true');
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 = () => {
if (chapter.index > 1) {
history.push(`/manga/${manga.id}/chapter/${chapter.index - 1}`);
history.replace(`/manga/${manga.id}/chapter/${chapter.index - 1}`);
}
};

Expand Down

0 comments on commit b6cf4a0

Please sign in to comment.