mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-03-17 21:31:43 +01:00
fix twitter embed throwing error
This commit is contained in:
parent
bba59ccf88
commit
66b8b6572c
@ -13,7 +13,7 @@ export const TweetEmbed = ({ href, conversation }: TweetEmbedProps) => {
|
||||
useEffect(() => {
|
||||
if (ref.current) {
|
||||
// @ts-ignore
|
||||
window.twttr.widgets.load();
|
||||
window.twttr?.widgets.load();
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user