Parcourir la source

Merge pull request #5223 from overleaf/jpa-fix-annual-plan-codes

[web] de-ng plans page: fix plan codes for annual plans

GitOrigin-RevId: f8d94e8c495d9917267adf73e4d75bbd4f5264b2
June Kelly il y a 5 ans
Parent
commit
5900dc3b4a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      services/web/frontend/js/pages/user/subscription/plans.js

+ 1 - 1
services/web/frontend/js/pages/user/subscription/plans.js

@@ -60,7 +60,7 @@ function updateLinkTargets() {
 
     const plan = el.getAttribute('data-ol-start-new-subscription')
     const view = el.getAttribute('data-ol-item-view') || currentView
-    const suffix = view === 'annual' ? `_annual` : `_free_trial_7_days`
+    const suffix = view === 'annual' ? `-annual` : `_free_trial_7_days`
     const planCode = `${plan}${suffix}`
 
     const location = el.getAttribute('data-ol-location')