Skip to content

Commit aa67ef6

Browse files
JohnyTheCarrotYomanz
authored andcommitted
fix: video embeds' proxy_url was not checked for null (#52)
1 parent 81479b5 commit aa67ef6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Content/Embed/EmbedVideo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ interface EmbedVideoProps
5757
extends Required<Pick<APIEmbedVideo, "width" | "height">> {
5858
thumbnail?: APIEmbedThumbnail["url"];
5959
url: APIEmbedVideo["url"] | undefined;
60-
proxyUrl: APIEmbedVideo["proxy_url"] | undefined;
60+
proxyUrl: APIEmbedVideo["proxy_url"] | undefined | null;
6161
}
6262

6363
function EmbedVideo(props: EmbedVideoProps) {
64-
if (props.proxyUrl !== undefined)
64+
if (props.proxyUrl)
6565
return (
6666
<ThumbnailWrapper
6767
thumbnail={props.thumbnail}

0 commit comments

Comments
 (0)