Adjust missing chapters UI

(cherry picked from commit 1ff78173f71f838e57052557eb9e1c6fe3a402f1)
This commit is contained in:
arkon
2023-03-26 10:26:58 -04:00
committed by Jobobby04
parent fe301dfd8b
commit 77dc09ff21
3 changed files with 27 additions and 45 deletions
@@ -14,7 +14,7 @@ fun countMissingChapters(chaptersInput: List<Float>): Int? {
.map { floor(it.toDouble()).toInt() }
// Only keep unique chapters so that -1 or 16 are not counted multiple times
.distinct()
.sortedBy { it }
.sorted()
if (chapters.isEmpty()) {
return null