Skip to content

Commit

Permalink
fix: avoid double notice components (#1703)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoo authored Nov 11, 2024
1 parent 8a15cf5 commit b8e9130
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/newsletter-editor/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ const Editor = compose( [

// Show an editor notice if the newsletter has been sent.
createNotice( 'success', successNote + dateTime, {
id: 'newspack-newsletters-campaign-sent-notice',
isDismissible: false,
} );

Expand All @@ -151,6 +152,7 @@ const Editor = compose( [
'newspack-newsletters'
),
{
id: 'newspack-newsletters-custom-fields-warning',
isDismissible: false,
actions: [
{
Expand Down

0 comments on commit b8e9130

Please sign in to comment.