From 6d324e31f18974f8d809b08edc35241184ffa2eb Mon Sep 17 00:00:00 2001 From: Fabien 'egg' O'Carroll Date: Thu, 18 Mar 2021 14:45:29 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20deleting=20members=20to?= =?UTF-8?q?=20prompt=20cancellation=20(#1869)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes https://github.com/TryGhost/Team/issues/546 Since https://github.com/TryGhost/Ghost/commit/26ee6483 and https://github.com/TryGhost/Admin/commit/fbd42ef3 member subscriptions have not been on the `stripe` property. This meant that all members were considered to not have subscriptions, and so the modal would not display to option to cancel subscriptions. --- ghost/admin/app/components/modal-delete-member.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/app/components/modal-delete-member.js b/ghost/admin/app/components/modal-delete-member.js index 50e3b4d9d2..bcf7ce71b6 100644 --- a/ghost/admin/app/components/modal-delete-member.js +++ b/ghost/admin/app/components/modal-delete-member.js @@ -18,7 +18,7 @@ export default ModalComponent.extend({ cancelSubscriptions: reads('shouldCancelSubscriptions'), hasActiveStripeSubscriptions: computed('member', function () { - let subscriptions = this.member.get('stripe'); + let subscriptions = this.member.get('subscriptions'); if (!subscriptions || subscriptions.length === 0) { return false;