mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue