diff --git a/src/forms/markdown/toolbar/ToolbarMedia.tsx b/src/forms/markdown/toolbar/ToolbarMedia.tsx index ecc9156a4..9c8b10fa2 100644 --- a/src/forms/markdown/toolbar/ToolbarMedia.tsx +++ b/src/forms/markdown/toolbar/ToolbarMedia.tsx @@ -6,7 +6,7 @@ import { TweetCommand } from '../commands/TweetCommand' import { VideoCommand } from '../commands/VideoCommand' export const ToolbarMedia = ({ isDisabled }: { isDisabled?: boolean }) => { - const isTweetEnabled = twttr && twttr.widgets + const isTweetEnabled = Boolean(twttr?.widgets) return (