Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
apeatling authored and stacimc committed Jan 5, 2021
1 parent e9f1a8a commit 8dce46f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/blocks/premium-content/buttons/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default compose( [
.getBlock( props.clientId )
.innerBlocks.find( ( block ) => block.name === 'jetpack/recurring-payments' );

return subscribeButton;
return { subscribeButton };
} ),
withDispatch( ( dispatch, props ) => ( {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function render_loggedout_view_block( $attributes, $content, $block = null ) {
}

$visitor_has_access = current_visitor_can_access( $attributes, $block );

if ( $visitor_has_access ) {
// The viewer has access to premium content, so the viewer shouldn't see the logged out view.
return '';
Expand Down

0 comments on commit 8dce46f

Please sign in to comment.