diff --git a/assets/js/src/listing/notices.jsx b/assets/js/src/listing/notices.jsx index 9564c675c4..97a2b03fc4 100644 --- a/assets/js/src/listing/notices.jsx +++ b/assets/js/src/listing/notices.jsx @@ -25,6 +25,10 @@ const MailerError = (props) => { if (!props.mta_log.error || props.mta_log.status !== 'paused' || props.mta_log.error.operation === 'authorization') { return null; } + // do not display MailPoet API Key error twice + if (props.mta_log.error.operation === 'send' && props.mta_method === 'MailPoet' && MailPoet.hasInvalidMssApiKey) { + return null; + } if (props.mta_log.error.operation === 'migration') { return (
diff --git a/assets/js/src/newsletters/send.jsx b/assets/js/src/newsletters/send.jsx index 68746ac32a..33d83c04cf 100644 --- a/assets/js/src/newsletters/send.jsx +++ b/assets/js/src/newsletters/send.jsx @@ -15,7 +15,6 @@ import { fromUrl } from 'common/thumbnail.ts'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router-dom'; import ReactStringReplace from 'react-string-replace'; -import InvalidMssKeyNotice from 'notices/invalid_mss_key_notice'; import slugify from 'slugify'; import { GlobalContext } from 'context/index.jsx'; @@ -478,10 +477,6 @@ class NewsletterSend extends React.Component { onChange={this.handleFormChange} onSubmit={this.handleSave} > -