fix chapter actions not working if manga is not fetched online (#74)

This commit is contained in:
Aria Moradi
2021-11-14 00:24:52 +03:30
committed by GitHub
parent 416dd227a2
commit 93c4ce3450

View File

@@ -115,7 +115,7 @@ export default function Manga() {
}, [manga]);
useEffect(() => {
const shouldFetchOnline = fetchedOffline && !fetchedOnline;
const shouldFetchOnline = fetchedOffline && !fetchedOnline && (chapterUpdateTriggerer < 2);
client.get(`/api/v1/manga/${id}/chapters?onlineFetch=${shouldFetchOnline}`)
.then((response) => response.data)