From 6ba4b16c14910d6c73735ad26b00d7bb83b78efc Mon Sep 17 00:00:00 2001 From: Amine Ben hammou Date: Tue, 7 May 2019 16:55:50 +0000 Subject: [PATCH] Fix typos and remove unused vars --- assets/js/src/common/sender_email_address_warning.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/js/src/common/sender_email_address_warning.jsx b/assets/js/src/common/sender_email_address_warning.jsx index 00c03ee679..27b8c563c0 100644 --- a/assets/js/src/common/sender_email_address_warning.jsx +++ b/assets/js/src/common/sender_email_address_warning.jsx @@ -1,14 +1,13 @@ import React from 'react'; import PropTypes from 'prop-types'; import MailPoet from 'mailpoet'; -import moment from 'moment'; import ReactStringReplace from 'react-string-replace'; const userHostDomain = window.location.hostname.replace('www.', ''); const suggestedEmailAddress = `contact@${userHostDomain}`; const SenderEmailAddressWarning = ({ emailAddress, mssActive }) => { - if (mssActive) return null + if (mssActive) return null; const emailAddressDomain = emailAddress.split('@').pop().toLowerCase(); if (window.mailpoet_free_domains.indexOf(emailAddressDomain) > -1) { return (