Skip to content

Commit

Permalink
fix chapter actions not working if manga is not fetched online (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriaMoradi authored Nov 13, 2021
1 parent 416dd22 commit 93c4ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screens/Manga.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 93c4ce3

Please sign in to comment.