Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Show Checkout block in editor also when guest checkout is not allowed (
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu committed Aug 5, 2020
1 parent 2f5c750 commit 4c08ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/blocks/cart-checkout/checkout/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ const Checkout = ( { attributes, scrollToTop } ) => {
window.location.href
) }`;

if ( ! customerId && ! CHECKOUT_ALLOWS_GUEST ) {
if ( ! isEditor && ! customerId && ! CHECKOUT_ALLOWS_GUEST ) {
return (
<>
{ __(
Expand Down

0 comments on commit 4c08ca0

Please sign in to comment.