Merge pull request #11551 from overleaf/tm-subscription-group-invite-message-fixes

Fix for subscription invites 'Cancel your subscription' prompt logic

GitOrigin-RevId: fc1f7487f901fce8204b32051b95de7ed49ae36d
This commit is contained in:
Thomas 2023-02-02 15:54:44 +01:00 committed by Copybot
parent 2fc33e58ce
commit 8d1ea82ad3

View file

@ -72,8 +72,8 @@ module.exports = {
const hasIndividualRecurlySubscription =
personalSubscription &&
!personalSubscription.planCode.match(/(free|trial)/) &&
personalSubscription.groupPlan === false &&
personalSubscription.recurlyStatus?.state !== 'canceled' &&
personalSubscription.recurlySubscription_id &&
personalSubscription.recurlySubscription_id !== ''