Skip to content

Commit

Permalink
Toggle - refactor for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Nov 8, 2018
1 parent f13294a commit dd60a37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/editor/src/components/post-publish-panel/toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ export function PostPublishPanelToggle( {
forceIsSaving,
forceIsDirty,
} ) {
const isButtonDisabled = isPublished ||
const isButtonDisabled =
isPublished ||
isSaving ||
forceIsSaving ||
! isSaveable ||
isSaving || forceIsSaving ||
( ! isPublishable && ! forceIsDirty );

return (
Expand Down

0 comments on commit dd60a37

Please sign in to comment.