Fix message construction

[MAILPOET-1890]
This commit is contained in:
Pavel Dohnal
2019-03-25 12:46:23 +01:00
committed by M. Shull
parent 72fc8cecf2
commit 5693918aae

View File

@@ -24,7 +24,7 @@ const NewInstallationWithMSSWarning = ({ emailAddress }) => (
MailPoet.I18n.t('senderEmailAddressNewInstallWarning2'), MailPoet.I18n.t('senderEmailAddressNewInstallWarning2'),
/(%suggested|%originalSender)/, /(%suggested|%originalSender)/,
(match) => { (match) => {
if (match === '<em>%suggested</em>') return <em key="suggested-email">{ suggestedEmailAddress }</em>; if (match === '%suggested') return <em key="suggested-email">{ suggestedEmailAddress }</em>;
return <em key="sender-email">{ emailAddress }</em>; return <em key="sender-email">{ emailAddress }</em>;
} }
)} )}