diff --git a/mailpoet/assets/js/src/newsletters/send/sender-address-field.jsx b/mailpoet/assets/js/src/newsletters/send/sender-address-field.jsx index 4fd78c6629..5d90841e62 100644 --- a/mailpoet/assets/js/src/newsletters/send/sender-address-field.jsx +++ b/mailpoet/assets/js/src/newsletters/send/sender-address-field.jsx @@ -80,12 +80,16 @@ class SenderField extends Component { if (!isFieldValid(this.domElementSelector)) { validateField(this.domElementSelector); + // Hide domain error to not stack error messages + this.showSenderDomainError(false); return; } if (!emailAddressIsAuthorized) { this.showInvalidFromAddressError(emailAddress); + return; } + this.showSenderDomainError(true); }; showSenderDomainError = (status) => { @@ -115,8 +119,6 @@ class SenderField extends Component { isPartiallyVerifiedDomain: window.mailpoet_partially_verified_sender_domains.includes(emailDomain), }); - - this.showSenderDomainError(true, emailAddress); } render() {