Skip to content

Commit

Permalink
Added name to welcome notification
Browse files Browse the repository at this point in the history
no refs.
  • Loading branch information
peterzimon committed Nov 10, 2020
1 parent d1c0915 commit 7220049
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ghost/portal/src/components/Notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ const Styles = () => {
const NotificationText = ({type, status, context}) => {
const signinPortalLink = getPortalLink({page: 'signin', siteUrl: context.site.url});
const singupPortalLink = getPortalLink({page: 'signup', siteUrl: context.site.url});
const firstname = context.member.firstname;
if (type === 'signin' && status === 'success') {
return (
<p>
Welcome back!<br />You've successfully signed in.
Welcome back{(firstname ? ', ' + firstname : '')}!<br />You've successfully signed in.
</p>
);
} else if (type === 'signin' && status === 'error') {
Expand Down

0 comments on commit 7220049

Please sign in to comment.