diff --git a/src/Content/Embed/EmbedVideo.tsx b/src/Content/Embed/EmbedVideo.tsx index 071183c..f75b74e 100644 --- a/src/Content/Embed/EmbedVideo.tsx +++ b/src/Content/Embed/EmbedVideo.tsx @@ -57,11 +57,11 @@ interface EmbedVideoProps extends Required> { thumbnail?: APIEmbedThumbnail["url"]; url: APIEmbedVideo["url"] | undefined; - proxyUrl: APIEmbedVideo["proxy_url"] | undefined; + proxyUrl: APIEmbedVideo["proxy_url"] | undefined | null; } function EmbedVideo(props: EmbedVideoProps) { - if (props.proxyUrl !== undefined) + if (props.proxyUrl) return (