Skip to content

Commit

Permalink
code it like Osk
Browse files Browse the repository at this point in the history
  • Loading branch information
lezama committed Aug 25, 2024
1 parent f32d5b6 commit 976bd4e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const NewsletterMenu = () => {

const { isUserConnected } = useConnection();
const connectUrl = `${ window?.Jetpack_Editor_Initial_State?.adminUrl }admin.php?page=my-jetpack#/connection`;
const shouldPromptForConnection = ! isSimpleSite() && ! isUserConnected;

const openPreviewModal = () => setIsPreviewModalOpen( true );
const closePreviewModal = () => setIsPreviewModalOpen( false );
Expand All @@ -49,7 +50,7 @@ const NewsletterMenu = () => {
<SubscribersAffirmation accessLevel={ accessLevel } prePublish={ ! isPublished } />
{ isSendEmailEnabled && ! isPublished && (
<>
{ isUserConnected || isSimpleSite() ? (
{ ! shouldPromptForConnection ? (
<>
<p>
{ __(
Expand Down

0 comments on commit 976bd4e

Please sign in to comment.