fix twitter embed throwing error

This commit is contained in:
hzrd149 2023-02-07 17:04:19 -06:00
parent bba59ccf88
commit 66b8b6572c

View File

@ -13,7 +13,7 @@ export const TweetEmbed = ({ href, conversation }: TweetEmbedProps) => {
useEffect(() => {
if (ref.current) {
// @ts-ignore
window.twttr.widgets.load();
window.twttr?.widgets.load();
}
}, []);