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:
parent
082160106a
commit
d0a16112f5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue