Skip to content

Commit

Permalink
display fetched id correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
KentoNishi committed Aug 29, 2023
1 parent 1e74ebd commit 85c8b21
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/YtcFilterWelcome.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@
<br />
<strong>Video:</strong>
{#if $videoInfo}
<span class="trimmed">{$videoInfo?.video?.title ?? 'Unknown'}</span>
(<span class="trimmed">{$videoInfo?.channel?.name ?? 'Unknown'}</span>)
{#if $videoInfo?.video?.title}
<span class="trimmed">{$videoInfo?.video?.title ?? 'Unknown'}</span>
(<span class="trimmed">{$videoInfo?.channel?.name ?? 'Unknown'}</span>)
{:else}
<span>{$videoInfo.video.videoId}</span>
{/if}
{:else}
<span>Unknown</span>
{/if}
Expand Down

0 comments on commit 85c8b21

Please sign in to comment.