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