From 75952ffda80af42ecaa786a9a85b401dbe539b96 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 25 Dec 2023 17:05:02 -0800 Subject: fix(wrapped): null check all of genres tags --- src/lib/Tools/Wrapped.svelte | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) (limited to 'src/lib/Tools') diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte index fe7545ba..9934aeb2 100644 --- a/src/lib/Tools/Wrapped.svelte +++ b/src/lib/Tools/Wrapped.svelte @@ -510,11 +510,11 @@ {/if} {/if} - {#if topGenresTags} + {#if topMedia && topGenresTags && ((topMedia.topGenreMedia && topMedia.genres.length > 0) || (topMedia.topTagMedia && topMedia.tags.length > 0))}
-
-
- {#if topMedia} + {#if topMedia.topGenreMedia && topMedia.genres.length > 0} +
-
- + {/if}
{/if} {#if !disableActivityHistory} -- cgit v1.2.3