mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03: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
@ -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…
Reference in New Issue
Block a user