From 76955c814aa7a5e9178597173e166a67830ee368 Mon Sep 17 00:00:00 2001 From: Antoine Clausse Date: Thu, 18 Apr 2024 10:12:56 +0200 Subject: [PATCH] Remove `subscription-cancel-button` (#17976) I believe this was already removed since https://github.com/overleaf/internal/pull/13311 GitOrigin-RevId: e486f2fce794fc9d587da331547834c3b6158ceb --- .../src/Features/Subscription/SubscriptionController.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/services/web/app/src/Features/Subscription/SubscriptionController.js b/services/web/app/src/Features/Subscription/SubscriptionController.js index 73b0f65c6c..7f2949d266 100644 --- a/services/web/app/src/Features/Subscription/SubscriptionController.js +++ b/services/web/app/src/Features/Subscription/SubscriptionController.js @@ -141,14 +141,6 @@ async function userSubscriptionPage(req, res) { AnalyticsManager.recordEventForSession(req.session, 'subscription-page-view') - const cancelButtonAssignment = await SplitTestHandler.promises.getAssignment( - req, - res, - 'subscription-cancel-button' - ) - - const cancelButtonNewCopy = cancelButtonAssignment?.variant === 'new-copy' - const groupPlansDataForDash = formatGroupPlansDataForDash() // display the Group Settings button only to admins of group subscriptions with either/or the Managed Users or Group SSO feature available @@ -198,7 +190,6 @@ async function userSubscriptionPage(req, res) { managedInstitutions, managedPublishers, currentInstitutionsWithLicence, - cancelButtonNewCopy, groupPlans: groupPlansDataForDash, groupSettingsEnabledFor, isManagedAccount: !!req.managedBy,