diff --git a/src/components/manga/MangaListTable.vue b/src/components/manga/MangaListTable.vue index d0071ef..171c707 100644 --- a/src/components/manga/MangaListTable.vue +++ b/src/components/manga/MangaListTable.vue @@ -76,7 +76,16 @@ export default class MangaListTable extends Vue { newChapterCount(entry: ViewEntry): number { const max = entry.media?.chapters || entry.chapters.reduce((l, r) => Math.max(l, r.chapter), 0); - return max === 0 ? 0 : max - entry.entry.progress; + return Math.max(0, max - entry.entry.progress); + } + + lastestChapterString(entry: ViewEntry): string { + if (entry.media?.chapters) { + return '' + entry.media.chapters; + } else if (entry.chapters.length) { + return entry.chapters.reduce((l, r) => Math.max(l, r.chapter), 0) + '+'; + } + return '?'; } latestChaptersSorted(entry: ViewEntry): MangaUpdatesChapter[] { @@ -135,7 +144,7 @@ export default class MangaListTable extends Vue {
{{ hd(data).label }}