From b6cf4a003e8943cf5fa96a2f66481a485627ea87 Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Sun, 31 Oct 2021 23:47:24 +0330 Subject: [PATCH] closes #58 --- src/screens/Reader.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/screens/Reader.tsx b/src/screens/Reader.tsx index 477761ae..33e090e0 100644 --- a/src/screens/Reader.tsx +++ b/src/screens/Reader.tsx @@ -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}`); } };