Displays "this is a premium feature" link when Premium is disabled

This commit is contained in:
Vlad
2018-06-14 14:47:07 -04:00
parent b135c342f1
commit 5a94e0d780

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}