diff --git a/src/SingleDialogComponent.svelte b/src/SingleDialogComponent.svelte index c55da1e9d83b51abac3970f3b557ccb64f8c971e..413f801ce7984e2118054c8ae46e9f4111ee4484 100644 --- a/src/SingleDialogComponent.svelte +++ b/src/SingleDialogComponent.svelte @@ -81,16 +81,18 @@ sandbox="allow-same-origin allow-scripts allow-popups" src="https://video.oh14.de/videos/embed/{peertubeVideoId}?autoplay=1&title=0&warningTitle=0&peertubeLink=0" frameborder="0" - allowfullscreen /> {/if} -<div> - <Typewriter cascade interval={10} cursor={false}> - {#each text.split("\n") as para} - <p>{para}</p> - {/each} - </Typewriter> -</div> +{#if typeof text === "string" && text.length > 0} + <div> + <Typewriter cascade interval={10} cursor={false}> + {#each text.split("\n") as para} + <p>{para}</p> + {/each} + </Typewriter> + </div> +{/if} + <hr /> <div> {#each usableOptions as option}