Skip to content

Commit

Permalink
fix: update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
sajald77 committed Sep 5, 2023
1 parent f771750 commit 6b4d9c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/forms/markdown/toolbar/ToolbarMedia.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<ButtonGroup isAttached py={1}>
<LinkCommand isDisabled={isDisabled} />
Expand Down

0 comments on commit 6b4d9c8

Please sign in to comment.