From aa9818ed83715ef4a311c5bbc725e3830377c0ec Mon Sep 17 00:00:00 2001 From: Rishabh Date: Thu, 24 Jun 2021 16:53:24 +0530 Subject: [PATCH] Fixed price check for complimentary member no refs --- ghost/portal/src/utils/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/portal/src/utils/helpers.js b/ghost/portal/src/utils/helpers.js index be0753d9d3..cb525f2940 100644 --- a/ghost/portal/src/utils/helpers.js +++ b/ghost/portal/src/utils/helpers.js @@ -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; }