mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Fixed price check for complimentary member
no refs
This commit is contained in:
parent
b2bcad3338
commit
aa9818ed83
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ export function isComplimentaryMember({member = {}}) {
|
||||||
const subscription = getMemberSubscription({member});
|
const subscription = getMemberSubscription({member});
|
||||||
if (subscription) {
|
if (subscription) {
|
||||||
const {price} = subscription;
|
const {price} = subscription;
|
||||||
return (price.amount === 0);
|
return (price && price.amount === 0);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue