Don't show "authorize now" message when email field is empty

[MAILPOET-6111]
This commit is contained in:
 Ján Mikláš
2024-06-17 13:49:34 +02:00
committed by Oluwaseun Olorunsola
parent a55725838d
commit c3968e7cad

View File

@@ -56,7 +56,7 @@ function SenderEmailAddressWarning({
MailPoet.freeMailDomains.indexOf(emailAddressDomain) > -1;
if (mssActive) {
if (!isEmailAuthorized) {
if (!isEmailAuthorized && emailAddress) {
displayElements.push(
<div key="authorizeMyEmail">
<p className="sender_email_address_warning">