mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-18 02:21:47 -05:00
Fixed preexisting member name check
refs 1dc0b36b56
- The name can also be 'null' so the check should take that into account
This commit is contained in:
parent
47f5ca6625
commit
6c7139b1fe
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ module.exports = function MembersApi({
|
|||
|
||||
const payerName = _.get(customer, 'subscriptions.data[0].default_payment_method.billing_details.name');
|
||||
|
||||
if (payerName && member.name === '') {
|
||||
if (payerName && !member.name) {
|
||||
await users.update({name: payerName}, {id: member.id});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue