mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +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 || '';
|
const firstname = context.member.firstname || '';
|
||||||
return (
|
return (
|
||||||
<p>
|
<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>
|
</p>
|
||||||
);
|
);
|
||||||
} else if (type === 'signin' && status === 'error') {
|
} else if (type === 'signin' && status === 'error') {
|
||||||
|
Loading…
Reference in New Issue
Block a user