Hide unknown rating in list

This commit is contained in:
Koitharu
2021-01-22 19:41:19 +02:00
parent bbcd96b981
commit 49f9fb0488

View File

@@ -18,7 +18,7 @@ fun Manga.toListDetailedModel() = MangaListDetailedModel(
id = id,
title = title,
subtitle = altTitle,
rating = "${(rating * 10).roundToInt()}/10",
rating = if (rating == Manga.NO_RATING) null else "${(rating * 10).roundToInt()}/10",
tags = tags.joinToString(", ") { it.title },
coverUrl = coverUrl,
manga = this