0
Fork 0
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:
Rishabh 2021-06-24 16:53:24 +05:30
parent b2bcad3338
commit aa9818ed83

View file

@ -42,7 +42,7 @@ export function isComplimentaryMember({member = {}}) {
const subscription = getMemberSubscription({member});
if (subscription) {
const {price} = subscription;
return (price.amount === 0);
return (price && price.amount === 0);
}
return false;
}