From ced56b0b9a9f55413f7958878eec352e4a9934de Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 31 Dec 2023 12:46:46 -0800
Subject: fix(wrapped): no score if no score

---
 src/lib/Tools/Wrapped.svelte | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'src/lib/Tools/Wrapped.svelte')

diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte
index abab97f4..31e1c68c 100644
--- a/src/lib/Tools/Wrapped.svelte
+++ b/src/lib/Tools/Wrapped.svelte
@@ -583,7 +583,9 @@
 													<li>
 														<a href={`https://anilist.co/anime/${anime.id}`} target="_blank">
 															<MediaTitleDisplay title={anime.title} />
-														</a>{highestRatedMediaPercentage
+														</a>{highestRatedMediaPercentage &&
+														anime.mediaListEntry &&
+														anime.mediaListEntry?.score > 0
 															? `: ${anime.mediaListEntry?.score}%`
 															: ''}
 													</li>
@@ -611,7 +613,9 @@
 													<li>
 														<a href={`https://anilist.co/manga/${manga.id}`} target="_blank">
 															<MediaTitleDisplay title={manga.title} />
-														</a>{highestRatedMediaPercentage
+														</a>{highestRatedMediaPercentage &&
+														manga.mediaListEntry &&
+														manga.mediaListEntry?.score > 0
 															? `: ${manga.mediaListEntry?.score}%`
 															: ''}
 													</li>
-- 
cgit v1.2.3

