Skip to content

Commit

Permalink
fix(watch-stats): add validation of episodes_total in handleAddEpisode
Browse files Browse the repository at this point in the history
  • Loading branch information
olexh committed May 9, 2024
1 parent 40d7e9b commit 4820f33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const WatchStats = () => {
const episodes =
(variables?.params?.episodes || watch.episodes) + 1;

if (episodes > watch.anime.episodes_total) return;
if (watch.anime.episodes_total && episodes > watch.anime.episodes_total) return;

let status = watch.status;

Expand Down

0 comments on commit 4820f33

Please sign in to comment.