Merge pull request #1346 from mailpoet/welcome_email_count_fix

Fixes sent count not being displayed in welcome listings [MAILPOET-1374]
This commit is contained in:
Michelle Shull
2018-05-08 09:38:19 -04:00
committed by GitHub

View File

@@ -156,7 +156,7 @@ const NewsletterListWelcome = React.createClass({
});
},
renderStatus: function renderStatus(newsletter) {
const totalSent = (!parseInt(newsletter.total_sent, 10) === 0) ?
const totalSent = (parseInt(newsletter.total_sent, 10)) ?
MailPoet.I18n.t('sentToXSubscribers')
.replace('%$1d', newsletter.total_sent.toLocaleString()) :
MailPoet.I18n.t('notSentYet');