mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 11:22:19 +03:00
Fixed showing name in Portal notification
fixes https://github.com/TryGhost/Ghost/issues/17242 - we weren't passing the correct parameter to the translation function, so the name placeholder wasn't being replaced
This commit is contained in:
parent
b6131f0631
commit
c5aea0caee
@ -34,7 +34,7 @@ const NotificationText = ({type, status, context}) => {
|
||||
const firstname = context.member.firstname || '';
|
||||
return (
|
||||
<p>
|
||||
{firstname ? t('Welcome back, {{name}}!', firstname) : t('Welcome back!')}<br />{t('You\'ve successfully signed in.')}
|
||||
{firstname ? t('Welcome back, {{name}}!', {name: firstname}) : t('Welcome back!')}<br />{t('You\'ve successfully signed in.')}
|
||||
</p>
|
||||
);
|
||||
} else if (type === 'signin' && status === 'error') {
|
||||
|
Loading…
Reference in New Issue
Block a user