Skip to content

Commit

Permalink
fix edge case for lists that were divisible by 20
Browse files Browse the repository at this point in the history
  • Loading branch information
nonproto committed Nov 27, 2024
1 parent d9c2ac2 commit b922d28
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ class ListHandler {
listDto.data.relationships
.filter { it.type == MdConstants.Types.manga }
.map { it.id }
when (allMangaIds.isEmpty() || allMangaIds.size < MdUtil.getMangaListOffset(page)) {
when (
allMangaIds.isEmpty() || allMangaIds.size <= MdUtil.getMangaListOffset(page)
) {
true ->
Ok(ListResults(DisplayScreenType.List("", listUUID), persistentListOf()))
false -> {
Expand Down

0 comments on commit b922d28

Please sign in to comment.