Skip to content

Commit

Permalink
fix(zoro): hasNextPage always being true (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitknox authored Mar 13, 2024
1 parent fb93bab commit 97bfaf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/anime/zoro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ class Zoro extends AnimeParser {
const pagination = $('ul.pagination');
res.currentPage = parseInt(pagination.find('.page-item.active')?.text());
const nextPage = pagination.find('a[title=Next]')?.attr('href');
if (nextPage != undefined || nextPage != '') {
if (nextPage != undefined && nextPage != '') {
res.hasNextPage = true;
}
const totalPages = pagination.find('a[title=Last]').attr('href')?.split('=').pop();
Expand Down

0 comments on commit 97bfaf2

Please sign in to comment.