Merge pull request #1407 from mailpoet/woocommerce_free_premium_link_fix

Displays "this is a premium feature" link when Premium is disabled [MAILPOET-1426]
This commit is contained in:
Michelle Shull
2018-06-18 14:36:48 -04:00
committed by GitHub

View File

@@ -9,7 +9,6 @@ class AutomaticEmailEvent extends React.PureComponent {
const disabled = event.soon;
let action;
if (this.props.premium) {
action = (
<a
@@ -19,7 +18,7 @@ class AutomaticEmailEvent extends React.PureComponent {
{MailPoet.I18n.t('premiumFeatureLink')}
</a>
);
} if (event.actionButtonLink && event.actionButtonTitle) {
} else if (event.actionButtonLink && event.actionButtonTitle) {
action = (
<a
href={event.actionButtonLink}