Skip to content

Commit

Permalink
Improve resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
octaedro committed Feb 23, 2024
1 parent e88dfa8 commit 1c271df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/js/product-editor/src/components/header/header.tsx
Expand Up @@ -65,9 +65,7 @@ export function Header( {
'name'
);

const { isResolving, showPrepublishChecks } = useShowPrepublishChecks();

const isPrepublishButtonVisible = ! isResolving && showPrepublishChecks;
const { showPrepublishChecks } = useShowPrepublishChecks();

const sidebarWidth = useAdminSidebarWidth();

Expand Down Expand Up @@ -165,7 +163,7 @@ export function Header( {

<PublishButton
productType={ productType }
prePublish={ isPrepublishButtonVisible }
prePublish={ showPrepublishChecks }
/>

<WooHeaderItem.Slot name="product" />
Expand Down

0 comments on commit 1c271df

Please sign in to comment.