Use null assertions instead of casting.

This commit is contained in:
Paul
2021-06-21 09:02:38 +01:00
parent d1bff98635
commit 3555e9a7bf
4 changed files with 5 additions and 5 deletions

View File

@@ -43,7 +43,7 @@ export default function EmbedMedia({ embed, width, height }: Props) {
)
case 'Soundcloud': return (
<iframe
src={`https://w.soundcloud.com/player/?url=${encodeURIComponent(embed.url as string)}&color=%23FF7F50&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true`}
src={`https://w.soundcloud.com/player/?url=${encodeURIComponent(embed.url!)}&color=%23FF7F50&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true`}
frameBorder="0"
scrolling="no"
style={{ height }} />