Skip to content

Commit

Permalink
AI Title Optimization: Disable entry button if no post content
Browse files Browse the repository at this point in the history
  • Loading branch information
renatoagds committed May 2, 2024
1 parent 1b280b0 commit 6548745
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default function TitleOptimization( {
<p>{ __( 'Use AI to optimize key details of your post.', 'jetpack' ) }</p>
<Button
isBusy={ busy }
disabled={ disabled }
disabled={ ! postContent || disabled }
onClick={ handleTitleOptimization }
variant="secondary"
>
Expand Down

0 comments on commit 6548745

Please sign in to comment.