aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/Hololive/Stream.svelte8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/Hololive/Stream.svelte b/src/lib/Hololive/Stream.svelte
index 18ce158b..e9057352 100644
--- a/src/lib/Hololive/Stream.svelte
+++ b/src/lib/Hololive/Stream.svelte
@@ -34,9 +34,11 @@
>{:else if new Date(live.time).getTime() < Date.now()}
<span class="ended">{$locale().hololive.ended}</span>{:else}
<span class="upcoming">{$locale().hololive.upcoming}</span>{/if}]
- <a href={root(`/hololive/${encodeURIComponent(live.streamer)}`)}>
- <img src={icon} alt="Profile" class="stream-icon" />
- </a>
+ {#if icon}
+ <a href={root(`/hololive/${encodeURIComponent(live.streamer)}`)}>
+ <img src={icon} alt="Avatar" class="stream-icon" />
+ </a>
+ {/if}
<b>{live.streamer}</b> <span class="opaque">|</span>
{$locale().hololive.dateFormatter(new Date(live.time))}
{#if live.guests.length > 0}