diff --git a/packages/editor/src/components/post-publish-button/index.js b/packages/editor/src/components/post-publish-button/index.js index c4049795555e9b..e5c1cf4eb3855e 100644 --- a/packages/editor/src/components/post-publish-button/index.js +++ b/packages/editor/src/components/post-publish-button/index.js @@ -42,9 +42,12 @@ export class PostPublishButton extends Component { forceIsDirty, forceIsSaving, } = this.props; - const isButtonEnabled = ( ! isSaving && ! forceIsSaving ) && - ( forceIsDirty || isPublishable ) && - ( isSaveable && ! isPostSavingLocked ); + const isButtonDisabled = + isSaving || + forceIsSaving || + ! isSaveable || + isPostSavingLocked || + ( ! isPublishable && ! forceIsDirty ); let publishStatus; if ( ! hasPublishAction ) { @@ -70,7 +73,7 @@ export class PostPublishButton extends Component { isPrimary isLarge onClick={ onClick } - disabled={ ! isButtonEnabled } + disabled={ isButtonDisabled } isBusy={ isSaving && isPublished } >