0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Fixed incorrect member first name in session data

no issue

Fixes a copy bug on how member's first name is calculated while getting member's session data in theme
This commit is contained in:
Rish 2020-04-22 19:28:32 +05:30
parent 082160106a
commit d0a16112f5

View file

@ -53,7 +53,7 @@ const getMemberData = async function (req, res) {
uuid: member.uuid,
email: member.email,
name: member.name,
firstname: member.name && req.member.name.split(' ')[0],
firstname: member.name && member.name.split(' ')[0],
avatar_image: member.avatar_image,
subscriptions: member.stripe.subscriptions,
paid: member.stripe.subscriptions.length !== 0